From 619a711e421b929be65130817d9838220a913fe5 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Tue, 13 Feb 2024 06:05:48 -0500 Subject: [PATCH] Temporary occasional error fix --- BeefLibs/corlib/src/HashCode.bf | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/BeefLibs/corlib/src/HashCode.bf b/BeefLibs/corlib/src/HashCode.bf index c90ed23a..fd89a3ed 100644 --- a/BeefLibs/corlib/src/HashCode.bf +++ b/BeefLibs/corlib/src/HashCode.bf @@ -138,19 +138,12 @@ static class HashCode public static int Generate(T value) { - if (Compiler.IsBuilding) + [IgnoreErrors(true)] { return HashHelper.Get(value); } - else - { - [IgnoreErrors(true)] - { - return HashHelper.Get(value); - } - #unwarn - return 0; - } +#unwarn + return 0; } static int Get(void* ptr, int size)