From a8e0e50ae5b1424ef236b30b2b603a8ef3ed00f3 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Tue, 6 May 2025 07:40:44 +0200 Subject: [PATCH] Use Bit instead of BIT The BIT macro is compile time only anyway. Takes care of the warning "C4334 - <<': result of 32-bit shift implicitly converted to 64 bits". Signed-off-by: Ralph Sennhauser --- source/lib/sysdep/os/win/tests/test_wdbg_sym.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/lib/sysdep/os/win/tests/test_wdbg_sym.h b/source/lib/sysdep/os/win/tests/test_wdbg_sym.h index 5b75583adc..7a88b29201 100644 --- a/source/lib/sysdep/os/win/tests/test_wdbg_sym.h +++ b/source/lib/sysdep/os/win/tests/test_wdbg_sym.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2020 Wildfire Games. +/* Copyright (C) 2025 Wildfire Games. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the @@ -77,7 +77,7 @@ __declspec(noinline) static void Func3() class TestWdbgSym : public CxxTest::TestSuite { - // m_test_array might get inlined and that messes + // m_test_array might get inlined and that messes // with the test so in order to protect the stack // trace we have to prevent it. __declspec(noinline) static void m_test_array() @@ -311,7 +311,7 @@ public: ret = debug_ResolveSymbol(funcAddresses[idxFunc], funcName, 0, 0); TS_ASSERT_OK(ret); if(wcsstr(funcName, callerName)) - foundFunctionBits |= BIT(idxFunc); + foundFunctionBits |= Bit(idxFunc); } } TS_ASSERT(foundFunctionBits == bit_mask(ARRAY_SIZE(funcAddresses)));