[Zope-Checkins] CVS: ZODB3/BTrees - _fsBTree.c:1.6

Jeremy Hylton jeremy@zope.com
Fri, 4 Apr 2003 16:41:54 -0500


Update of /cvs-repository/ZODB3/BTrees
In directory cvs.zope.org:/tmp/cvs-serv12356

Modified Files:
	_fsBTree.c 
Log Message:
Shouldn't user strcmp() to compare binary strings.

XXX Not sure where this macro is used or what kind of failures this
bug caused.


=== ZODB3/BTrees/_fsBTree.c 1.5 => 1.6 ===
--- ZODB3/BTrees/_fsBTree.c:1.5	Wed Nov 13 11:32:03 2002
+++ ZODB3/BTrees/_fsBTree.c	Fri Apr  4 16:41:54 2003
@@ -42,7 +42,7 @@
 #define VALUEMACROS_H "$Id$\n"
 #define VALUE_TYPE char6
 #undef VALUE_TYPE_IS_PYOBJECT
-#define TEST_VALUE(K, T) strncmp(K,T,6)
+#define TEST_VALUE(K, T) memcmp(K,T,6)
 #define DECLARE_VALUE(NAME) VALUE_TYPE NAME
 #define DECREF_VALUE(k)
 #define INCREF_VALUE(k)