r7728: handle 64 bit integers in INTEGER match
authorAndrew Tridgell <tridge@samba.org>
Sat, 18 Jun 2005 13:39:51 +0000 (13:39 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:18:27 +0000 (13:18 -0500)
(This used to be commit 57132344b4e39a670e683b3db00665e5f7a899fd)

source4/lib/ldb/ldb_tdb/ldb_match.c

index 4c11542971fd4dcc303c24ac1023b8c7d0a4d92d..b5b023bc09f4adf03986d0ddd58ccfd4ebe0d29e 100644 (file)
 */
 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;
 }