aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--libdb/odb.h2
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;
}