Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fixes for buliding for 32bit targets:
[vpp.git]
/
src
/
plugins
/
lb
/
lbhash.h
diff --git
a/src/plugins/lb/lbhash.h
b/src/plugins/lb/lbhash.h
index
5d2ff24
..
585b377
100644
(file)
--- a/
src/plugins/lb/lbhash.h
+++ b/
src/plugins/lb/lbhash.h
@@
-84,7
+84,7
@@
lb_hash_t *lb_hash_alloc(u32 buckets, u32 timeout)
return NULL;
// Allocate 1 more bucket for prefetch
- u32 size = ((u
64
)&((lb_hash_t *)(0))->buckets[0]) +
+ u32 size = ((u
word
)&((lb_hash_t *)(0))->buckets[0]) +
sizeof(lb_hash_bucket_t) * (buckets + 1);
u8 *mem = 0;
lb_hash_t *h;