1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-14 22:34:09 +02:00

32-bit fix

This commit is contained in:
Brian Fiete 2021-08-27 10:47:29 -07:00
parent 1cc0230e65
commit 2cfa017e32

View file

@ -300,7 +300,7 @@ namespace System.Collections
return (int32)hashCode & 0x7FFFFFFF; return (int32)hashCode & 0x7FFFFFFF;
if (sizeof(int_cosize) == 8) if (sizeof(int_cosize) == 8)
return (int_cosize)(hashCode & 0x7FFFFFFF'FFFFFFFFL); return (int_cosize)(hashCode & 0x7FFFFFFF'FFFFFFFFL);
return ((int32)hashCode ^ (int32)(hashCode >> 33)) & 0x7FFFFFFF; return ((int32)hashCode ^ (int32)((int64)hashCode >> 33)) & 0x7FFFFFFF;
} }
[DisableObjectAccessChecks] [DisableObjectAccessChecks]