Oops, fixed comparison function order.

Tue, 24 Apr 2007 19:00:47 +0200

author
Tuomo Valkonen <tuomov@iki.fi>
date
Tue, 24 Apr 2007 19:00:47 +0200
changeset 110
13134ea30227
parent 109
96a557abc364
child 111
7d1dccdd7215

Oops, fixed comparison function order.

stringstore.c file | annotate | diff | comparison | revisions
--- a/stringstore.c	Sun Mar 11 00:05:36 2007 +0100
+++ b/stringstore.c	Tue Apr 24 19:00:47 2007 +0200
@@ -40,7 +40,7 @@
     
     return (res!=0 
             ? res 
-            : (nodekey[d->len]=='\0' ? 0 : 1));
+            : (nodekey[d->len]=='\0' ? 0 : -1));
 }
 
 

mercurial