From 3f094627193994f08afc8dcf186a7a65c1c350b9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 14 Jun 2005 02:33:49 +0000 Subject: r7559: support 64 bit matching in bitops (This used to be commit 0c44a67001b9ae91c1ba7fc52f22d1eafc22dcc7) --- source4/lib/ldb/ldb_tdb/ldb_match.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source4/lib/ldb') diff --git a/source4/lib/ldb/ldb_tdb/ldb_match.c b/source4/lib/ldb/ldb_tdb/ldb_match.c index 5bc59383a5..51b0ab9aa7 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_match.c +++ b/source4/lib/ldb/ldb_tdb/ldb_match.c @@ -301,9 +301,9 @@ static int match_leaf(struct ldb_module *module, */ static int comparator_and(struct ldb_val *v1, struct ldb_val *v2) { - unsigned i1, i2; - i1 = strtoul(v1->data, NULL, 0); - i2 = strtoul(v2->data, NULL, 0); + uint64_t i1, i2; + i1 = strtoull(v1->data, NULL, 0); + i2 = strtoull(v2->data, NULL, 0); return ((i1 & i2) == i2); } @@ -312,9 +312,9 @@ static int comparator_and(struct ldb_val *v1, struct ldb_val *v2) */ static int comparator_or(struct ldb_val *v1, struct ldb_val *v2) { - unsigned i1, i2; - i1 = strtoul(v1->data, NULL, 0); - i2 = strtoul(v2->data, NULL, 0); + uint64_t i1, i2; + i1 = strtoull(v1->data, NULL, 0); + i2 = strtoull(v2->data, NULL, 0); return ((i1 & i2) != 0); } -- cgit