diff --git a/BeefLibs/corlib/src/Collections/HashSet.bf b/BeefLibs/corlib/src/Collections/HashSet.bf index cd478a2d..e38d50f5 100644 --- a/BeefLibs/corlib/src/Collections/HashSet.bf +++ b/BeefLibs/corlib/src/Collections/HashSet.bf @@ -1245,7 +1245,7 @@ namespace System.Collections public int32 GetHashKey(int hashCode) { if (sizeof(int) == 4) - return (int32)hashCode; + return (int32)hashCode & 0x7FFFFFFF; #unwarn return (int32)(hashCode ^ ((hashCode >> 31) * 1171)) & 0x7FFFFFFF; }