1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-23 07:12:12 -07:00

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
This commit is contained in:
Richard Brooksby 2012-05-17 15:33:56 +01:00
parent e76e783934
commit 45c488d1c5

View file

@ -65,7 +65,7 @@ static size_t sizeFloorLog2(size_t size)
static ulong TableHash(Word key)
{
/* Shift some randomness into the low bits. */
return (key >> 10) + key;
return (ulong)((key >> 10) + key);
}