From 17255fad14094f6e5fed8fff5225064ed2474a6b Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sat, 18 Nov 2023 07:50:51 -0500 Subject: [PATCH] HashCode typedprimitive fix --- BeefLibs/corlib/src/HashCode.bf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BeefLibs/corlib/src/HashCode.bf b/BeefLibs/corlib/src/HashCode.bf index 666a61ff..5637df82 100644 --- a/BeefLibs/corlib/src/HashCode.bf +++ b/BeefLibs/corlib/src/HashCode.bf @@ -17,7 +17,7 @@ static class HashCode if (t.IsTypedPrimitive == true) { - code.AppendF("\treturn ti.UnderlyingType;"); + code.AppendF($"\treturn SelfOuter.Get(({t.UnderlyingType})value);"); } else if (t.IsEnum) {