From 5b91ad25c20d39d8cb9ae944b7cf95c0898b565c Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 14 Nov 2023 20:24:21 -0600 Subject: [PATCH] [teagba] Fix MSVC warning --- deps/teagba/include/teagba/addresses.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/teagba/include/teagba/addresses.hpp b/deps/teagba/include/teagba/addresses.hpp index 6d3bf183..e84bc8bd 100644 --- a/deps/teagba/include/teagba/addresses.hpp +++ b/deps/teagba/include/teagba/addresses.hpp @@ -49,7 +49,7 @@ using BgCtl = uint16_t; #define REG_BG3CTL *reinterpret_cast(0x0400'000e) [[nodiscard]] -inline auto ®BgCtl(auto bgIdx) noexcept { +inline auto ®BgCtl(uintptr_t bgIdx) noexcept { return *reinterpret_cast(0x0400'0008 + 2 * bgIdx); }