svn commit: samba r7559 - in
branches/SAMBA_4_0/source/lib/ldb/ldb_tdb: .
tridge at samba.org
tridge at samba.org
Tue Jun 14 02:33:50 GMT 2005
Author: tridge
Date: 2005-06-14 02:33:49 +0000 (Tue, 14 Jun 2005)
New Revision: 7559
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7559
Log:
support 64 bit matching in bitops
Modified:
branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_match.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_match.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_match.c 2005-06-14 01:35:44 UTC (rev 7558)
+++ branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_match.c 2005-06-14 02:33:49 UTC (rev 7559)
@@ -301,9 +301,9 @@
*/
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_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);
}
More information about the samba-cvs
mailing list