aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code/table.c
diff options
context:
space:
mode:
authorRichard Brooksby2012-05-17 15:33:56 +0100
committerRichard Brooksby2012-05-17 15:33:56 +0100
commit0f146ceb358edbef7c1ff5c2c09c2278530a29d2 (patch)
treeb109cee3f92fe297e45bd88d50023946d4401096 /mps/code/table.c
parent63f5c2a9cf787b4c42d3c62b3f81cecce62a720e (diff)
downloademacs-0f146ceb358edbef7c1ff5c2c09c2278530a29d2.tar.gz
emacs-0f146ceb358edbef7c1ff5c2c09c2278530a29d2.zip
Adding missing cast to deliberately throw away bits in hash function, fixing a warning on w3i6mv.
Copied from Perforce Change: 178200 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/table.c')
-rw-r--r--mps/code/table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mps/code/table.c b/mps/code/table.c
index 772e45d9d30..b7ba512d270 100644
--- a/mps/code/table.c
+++ b/mps/code/table.c
@@ -65,7 +65,7 @@ static size_t sizeFloorLog2(size_t size)
65static ulong TableHash(Word key) 65static ulong TableHash(Word key)
66{ 66{
67 /* Shift some randomness into the low bits. */ 67 /* Shift some randomness into the low bits. */
68 return (key >> 10) + key; 68 return (ulong)((key >> 10) + key);
69} 69}
70 70
71 71