From 63b03ba70ccda61341c20ab200ebefc9d2a29ccd Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Fri, 21 Aug 2020 18:02:01 +0200 Subject: [PATCH] fix typecasting --- examples/turtle-gfx.p8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/turtle-gfx.p8 b/examples/turtle-gfx.p8 index ccf7e5437..8a55576fc 100644 --- a/examples/turtle-gfx.p8 +++ b/examples/turtle-gfx.p8 @@ -46,7 +46,7 @@ turtle { uword xx = xpos as uword c64.SPXY[0] = lsb(xx) + 12 c64.MSIGX = msb(xx) > 0 - c64.SPXY[1] = lsb(ypos) + 40 + c64.SPXY[1] = ypos as ubyte + 40 } sub pos(float x, float y) { @@ -66,7 +66,7 @@ turtle { ypos -= flen * cos(angle) update_turtle_sprite() if pendown { - graphics.line(sx as uword, lsb(sy), xpos as uword, lsb(ypos)) + graphics.line(sx as uword, sy as ubyte, xpos as uword, ypos as ubyte) } }