[Zodb-checkins] CVS: ZODB3/ZODB - TimeStamp.c:1.15.62.1
Guido van Rossum
guido@python.org
Wed, 16 Oct 2002 17:53:21 -0400
Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv2565
Modified Files:
Tag: ZODB3-3_1-branch
TimeStamp.c
Log Message:
Merge from trunk: clip compare results.
=== ZODB3/ZODB/TimeStamp.c 1.15 => 1.15.62.1 ===
--- ZODB3/ZODB/TimeStamp.c:1.15 Fri Mar 8 13:36:13 2002
+++ ZODB3/ZODB/TimeStamp.c Wed Oct 16 17:53:20 2002
@@ -344,7 +344,10 @@
static int
TimeStamp_compare(TimeStamp *v, TimeStamp *w)
{
- return memcmp(v->data, w->data, 8);
+ int cmp = memcmp(v->data, w->data, 8);
+ if (cmp < 0) return -1;
+ if (cmp > 0) return 1;
+ return 0;
}
static long