[Zope-Checkins] CVS: Zope2 - BTreeModuleTemplate.c:1.9
Jim Fulton
jim@digicool.com
Sun, 1 Apr 2001 16:25:26 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/BTrees
In directory korak:/tmp/cvs-serv2991
Modified Files:
BTreeModuleTemplate.c
Log Message:
Added some missing returns in some, fortunately, infrequently (if
ever) accessed logic).
--- Updated File BTreeModuleTemplate.c in package Zope2 --
--- BTreeModuleTemplate.c 2001/03/27 16:37:42 1.8
+++ BTreeModuleTemplate.c 2001/04/01 20:25:24 1.9
@@ -253,6 +253,7 @@
UNLESS (PER_USE(*bucket)) return -1;
*offset = 0;
}
+ return 1;
}
static int
@@ -270,6 +271,7 @@
UNLESS (PER_USE(*bucket)) return -1;
*offset = (*bucket)->len - 1;
}
+ return 1;
}
static void *
@@ -279,7 +281,7 @@
ASSERT(sz > 0, "non-positive size malloc", NULL);
- if (r=malloc(sz)) return r;
+ if ((r=malloc(sz))) return r;
PyErr_NoMemory();
return NULL;