projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rculfhash test: fix 32-bit hash
[urcu.git]
/
tests
/
test_urcu_hash.c
diff --git
a/tests/test_urcu_hash.c
b/tests/test_urcu_hash.c
index 98227c219abf11e9ea7aa667ecad4e98e65f8278..cbbddc8c8cef72d9d59a1ee08f1b6e970748bd69 100644
(file)
--- a/
tests/test_urcu_hash.c
+++ b/
tests/test_urcu_hash.c
@@
-350,10
+350,9
@@
static
unsigned long test_hash(void *_key, size_t length, unsigned long seed)
{
unsigned long key = (unsigned long) _key;
unsigned long test_hash(void *_key, size_t length, unsigned long seed)
{
unsigned long key = (unsigned long) _key;
- unsigned long v;
assert(length == sizeof(unsigned long));
assert(length == sizeof(unsigned long));
- return hash_u32(&
v
, 1, seed);
+ return hash_u32(&
key
, 1, seed);
}
#else
static
}
#else
static
This page took
0.023062 seconds
and
4
git commands to generate.