From 0481cfb5f8b8f4fa31ae5aeecb9b636053c2c904 Mon Sep 17 00:00:00 2001 From: pollney Date: Thu, 22 May 2003 08:33:50 +0000 Subject: SpaceMask_GetStateBits() returns -1 on error. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/SpaceMask/trunk@30 a491c6a4-70bf-4b89-8b36-d6c0cb1f094e --- src/MaskUtils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/MaskUtils.c b/src/MaskUtils.c index ad9e5e6..784f5b0 100644 --- a/src/MaskUtils.c +++ b/src/MaskUtils.c @@ -422,7 +422,8 @@ SpaceMask_GetTypeBits(const char* type_name) @author Denis Pollney @date 15 October 2002 @desc - Returns the bitmask corresponding to the given state. + Returns the bitmask corresponding to the given state, or + -1 if the state does not exist. @enddesc @@*/ @@ -449,7 +450,7 @@ SpaceMask_GetStateBits(const char* type_name, const char* state_name) "Requested state \"%s\" could not be found in type \"%s\"\n", state_name, type_name); - return 0; + return -1; } /*@@ -- cgit v1.2.3