Fix 64 bit build.

lights3
Sven Eberhardt 2015-08-21 15:03:13 -04:00
parent cf940d639b
commit d7a0d291e2
1 changed files with 2 additions and 1 deletions

View File

@ -842,5 +842,6 @@ unsigned int C4Set<C4PropListScript *>::Hash<C4PropListScript *>(C4PropListScrip
{
// since script prop lists are only put in the set for reference keeping, just hash by pointer
// but use only some of the more significant bits because
return reinterpret_cast<unsigned int>(e) / 63;
uintptr_t hash = reinterpret_cast<uintptr_t>(e);
return (unsigned int)(hash / 63);
}