From b31036813c7706527e2067392660c9068447fa2c Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 10 Mar 2023 11:36:30 -0500 Subject: size reduction and refactoring --- alee-msp430.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'alee-msp430.cpp') diff --git a/alee-msp430.cpp b/alee-msp430.cpp index 4116118..3121dc1 100644 --- a/alee-msp430.cpp +++ b/alee-msp430.cpp @@ -17,9 +17,9 @@ */ #include "alee.hpp" +#include "libalee/ctype.hpp" #include "splitmemdict.hpp" -#include #include #include "core.fth.h" @@ -149,10 +149,10 @@ void user_sys(State& state) break; case 2: { auto addr = state.pop(); - *((uint8_t *)addr) = state.pop(); } + *reinterpret_cast(addr) = state.pop(); } break; case 3: - state.push(*((uint8_t *)state.pop())); + state.push(*reinterpret_cast(state.pop())); break; default: break; -- cgit v1.2.3