Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vppinfra: fix test_bihash
[vpp.git]
/
src
/
vppinfra
/
test_bihash_template.c
diff --git
a/src/vppinfra/test_bihash_template.c
b/src/vppinfra/test_bihash_template.c
index
af3ebb2
..
17cc056
100644
(file)
--- a/
src/vppinfra/test_bihash_template.c
+++ b/
src/vppinfra/test_bihash_template.c
@@
-391,7
+391,7
@@
test_bihash (test_main_t * tm)
for (i = 0; i < tm->nitems; i++)
{
/* Prefetch buckets 8 iterations ahead */
for (i = 0; i < tm->nitems; i++)
{
/* Prefetch buckets 8 iterations ahead */
- if (1 && (i < (tm->nitems - 8)))
+ if (1 && (i < (
(i64)
tm->nitems - 8)))
{
BVT (clib_bihash_kv) pref_kv;
u64 pref_hash;
{
BVT (clib_bihash_kv) pref_kv;
u64 pref_hash;
@@
-475,7
+475,7
@@
test_bihash (test_main_t * tm)
for (j = 0; j < tm->nitems; j++)
{
/* Prefetch buckets 8 iterations ahead */
for (j = 0; j < tm->nitems; j++)
{
/* Prefetch buckets 8 iterations ahead */
- if (1 && (j < (tm->nitems - 8)))
+ if (1 && (j < (
(i64)
tm->nitems - 8)))
{
BVT (clib_bihash_kv) pref_kv;
u64 pref_hash;
{
BVT (clib_bihash_kv) pref_kv;
u64 pref_hash;