Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improved handling of a system that doesn't have a 64-bit offset type.
[rsync/rsync.git]
/
hashtable.c
diff --git
a/hashtable.c
b/hashtable.c
index
8f0a618
..
d2f5948
100644
(file)
--- a/
hashtable.c
+++ b/
hashtable.c
@@
-104,7
+104,9
@@
void *hashtable_find(struct hashtable *tbl, int64 key, int allocate_if_missing)
a = b = c = 0xdeadbeef + (8 << 2);
#define rot(x,k) (((x)<<(k)) ^ ((x)>>(32-(k))))
+#if SIZEOF_INT64 >= 8
b += (uint32)(key >> 32);
+#endif
a += (uint32)key;
c ^= b; c -= rot(b, 14);
a ^= c; a -= rot(c, 11);