svn commit: samba r7728 - in branches/SAMBA_4_0/source/lib/ldb/ldb_tdb: .

tridge at samba.org tridge at samba.org
Sat Jun 18 13:39:51 GMT 2005


Author: tridge
Date: 2005-06-18 13:39:51 +0000 (Sat, 18 Jun 2005)
New Revision: 7728

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7728

Log:
handle 64 bit integers in INTEGER match

Modified:
   branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_match.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_match.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_match.c	2005-06-18 13:37:44 UTC (rev 7727)
+++ branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_match.c	2005-06-18 13:39:51 UTC (rev 7728)
@@ -44,10 +44,10 @@
 */
 static int ltdb_val_equal_integer(const struct ldb_val *v1, const struct ldb_val *v2)
 {
-	int i1, i2;
+	uint64_t i1, i2;
 
-	i1 = strtol(v1->data, NULL, 0);
-	i2 = strtol(v2->data, NULL, 0);
+	i1 = strtoull(v1->data, NULL, 0);
+	i2 = strtoull(v2->data, NULL, 0);
 
 	return i1 == i2;
 }



More information about the samba-cvs mailing list