summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_tdb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-18 13:39:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:27 -0500
commit0dde0612b420d12b92d22bd64baa500af2c00b2f (patch)
tree065a7d2160071050f7c98ee2f101722a44e5002f /source4/lib/ldb/ldb_tdb
parenta828bccd3924369ddf086392fec113d3dca19bfa (diff)
downloadsamba-0dde0612b420d12b92d22bd64baa500af2c00b2f.tar.gz
samba-0dde0612b420d12b92d22bd64baa500af2c00b2f.tar.bz2
samba-0dde0612b420d12b92d22bd64baa500af2c00b2f.zip
r7728: handle 64 bit integers in INTEGER match
(This used to be commit 57132344b4e39a670e683b3db00665e5f7a899fd)
Diffstat (limited to 'source4/lib/ldb/ldb_tdb')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_match.c6
1 files changed, 3 insertions, 3 deletions
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;
}