1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Remove warning for 32-bit

This commit is contained in:
Brian Fiete 2021-12-27 12:33:32 -05:00
parent 85663b82ad
commit 096ade7614

View file

@ -311,6 +311,7 @@ namespace System.Collections
{
if (sizeof(int) == 4)
return (int32)hashCode & 0x7FFFFFFF;
#unwarn
if (sizeof(int_cosize) == 8)
return (int_cosize)(hashCode & 0x7FFFFFFF'FFFFFFFFL);
return ((int32)hashCode ^ (int32)((int64)hashCode >> 33)) & 0x7FFFFFFF;