fix datatype warning

This commit is contained in:
Irmen de Jong 2020-03-15 01:14:44 +01:00
parent 9d7eb3be5a
commit 6f000d0d26

View File

@ -14,10 +14,10 @@ main {
for r in 3 to 12 step 3 {
circle(r)
}
line(5,3, 30,3)
line(5,3, 5, 24)
line(30,3,30,24)
line(5,24,30,24)
;line(5,3, 30,3)
;line(5,3, 5, 24)
;line(30,3,30,24)
;line(5,24,30,24)
line(1, 10, 38, 24)
line(1, 20, 38, 2)
@ -40,10 +40,10 @@ main {
c64scr.setcc(x, y, 42, 5)
if x==x2
return
x += ix
x += ix as ubyte
d += dy2
if d > dx {
y += iy
y += iy as ubyte
d -= dx2
}
}
@ -52,10 +52,10 @@ main {
c64scr.setcc(x, y, 42, 5)
if y == y2
return
y += iy
y += iy as ubyte
d += dx2
if d > dy {
x += ix
x += ix as ubyte
d -= dy2
}
}