git.samba.org
/
metze
/
ctdb
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
idtree: fix right shift of signed ints, crash on large ids on AIX
[metze/ctdb/wip.git]
/
lib
/
util
/
idtree.c
diff --git
a/lib/util/idtree.c
b/lib/util/idtree.c
index ef6d21fd2852d79d825a26bb5001b89baae60401..05c22958bf739359cc0c6f69962b067198bc27ab 100644
(file)
--- a/
lib/util/idtree.c
+++ b/
lib/util/idtree.c
@@
-105,7
+105,7
@@
static int sub_alloc(struct idr_context *idp, void *ptr, int *starting_id)
int n, m, sh;
struct idr_layer *p, *new;
struct idr_layer *pa[MAX_LEVEL];
- int l, id, oid;
+
unsigned
int l, id, oid;
uint32_t bm;
memset(pa, 0, sizeof(pa));