diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | libdb/odb.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..86b18f5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.cproject +.project diff --git a/libdb/odb.h b/libdb/odb.h index 9ad1da2..1e777da 100644 --- a/libdb/odb.h +++ b/libdb/odb.h @@ -228,7 +228,7 @@ odb_do_hash(odb_data_t const * data, odb_key_t value) * files avoiding to rebuilding them at profiling re-start so * on changing do_hash() change the file format! */ - uint32_t temp = (value >> 32) ^ value; + uint32_t temp = value & 0xffffffff; return ((temp << 0) ^ (temp >> 8)) & data->hash_mask; } |