From 0dde0612b420d12b92d22bd64baa500af2c00b2f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 18 Jun 2005 13:39:51 +0000 Subject: r7728: handle 64 bit integers in INTEGER match (This used to be commit 57132344b4e39a670e683b3db00665e5f7a899fd) --- source4/lib/ldb/ldb_tdb/ldb_match.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/lib') diff --git a/source4/lib/ldb/ldb_tdb/ldb_match.c b/source4/lib/ldb/ldb_tdb/ldb_match.c index 4c11542971..b5b023bc09 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_match.c +++ b/source4/lib/ldb/ldb_tdb/ldb_match.c @@ -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; } -- cgit