[teagba] Fix MSVC warning
This commit is contained in:
parent
98983d1229
commit
5b91ad25c2
2
deps/teagba/include/teagba/addresses.hpp
vendored
2
deps/teagba/include/teagba/addresses.hpp
vendored
@ -49,7 +49,7 @@ using BgCtl = uint16_t;
|
||||
#define REG_BG3CTL *reinterpret_cast<volatile BgCtl*>(0x0400'000e)
|
||||
|
||||
[[nodiscard]]
|
||||
inline auto ®BgCtl(auto bgIdx) noexcept {
|
||||
inline auto ®BgCtl(uintptr_t bgIdx) noexcept {
|
||||
return *reinterpret_cast<volatile BgCtl*>(0x0400'0008 + 2 * bgIdx);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user