summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_match.c12
1 files changed, 6 insertions, 6 deletions
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);
}