diff --git a/src/test/kc/typedef-2.c b/src/test/kc/typedef-2.c index db1b8a425..2e30860b6 100644 --- a/src/test/kc/typedef-2.c +++ b/src/test/kc/typedef-2.c @@ -8,5 +8,5 @@ char* ptr = (char*)0x1000; void main() { WORD w = (WORD)&ptr; w += 50; - SCREEN[0] = (char)w; + SCREEN[0] = BYTE0(w); } \ No newline at end of file diff --git a/src/test/ref/typedef-2.asm b/src/test/ref/typedef-2.asm index 6c5ee1ca7..3f2d71776 100644 --- a/src/test/ref/typedef-2.asm +++ b/src/test/ref/typedef-2.asm @@ -19,7 +19,7 @@ __start: { rts } main: { - // SCREEN[0] =