From 9ae172c43fc437bfd16f6b85b9b683035f242953 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 27 Jan 2025 09:53:54 -0800 Subject: [PATCH] Win32 hashcode fix --- BeefLibs/corlib/src/Collections/HashSet.bf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }