diff options
| author | Richard Brooksby | 2012-05-17 15:33:56 +0100 |
|---|---|---|
| committer | Richard Brooksby | 2012-05-17 15:33:56 +0100 |
| commit | 0f146ceb358edbef7c1ff5c2c09c2278530a29d2 (patch) | |
| tree | b109cee3f92fe297e45bd88d50023946d4401096 /mps/code | |
| parent | 63f5c2a9cf787b4c42d3c62b3f81cecce62a720e (diff) | |
| download | emacs-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')
| -rw-r--r-- | mps/code/table.c | 2 |
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) | |||
| 65 | static ulong TableHash(Word key) | 65 | static 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 | ||