From d36bb13f52b3899fd0f57e38f00d97e2c3a0f627 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sat, 18 Mar 2023 12:40:46 -0400 Subject: -Wconversion --- msp430/alee-msp430.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'msp430') diff --git a/msp430/alee-msp430.cpp b/msp430/alee-msp430.cpp index 0ec6c88..b4f1b04 100644 --- a/msp430/alee-msp430.cpp +++ b/msp430/alee-msp430.cpp @@ -153,7 +153,7 @@ void user_sys(State& state) break; case 3: { auto addr = state.pop(); - *reinterpret_cast(addr) = state.pop(); } + *reinterpret_cast(addr) = state.pop() & 0xFFu; } break; case 4: state.push(*reinterpret_cast(state.pop())); -- cgit v1.2.3