Skip to content

Commit 8498e70

Browse files
committed
Fix warning wrt literal overflow in lazyfoo example 12
examples/lazyfoo/Lesson12.hs:86:64: warning: [-Woverflowed-literals] Literal -32 is out of the Word8 range 0..255
1 parent a94b767 commit 8498e70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/lazyfoo/Lesson12.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ main = do
8383
SDL.ScancodeQ -> Sum (V3 32 0 0)
8484
SDL.ScancodeW -> Sum (V3 0 32 0)
8585
SDL.ScancodeE -> Sum (V3 0 0 32)
86-
SDL.ScancodeA -> Sum (V3 (-32) 0 0)
87-
SDL.ScancodeS -> Sum (V3 0 (-32) 0)
88-
SDL.ScancodeD -> Sum (V3 0 0 (-32))
86+
SDL.ScancodeA -> Sum (V3 224 0 0)
87+
SDL.ScancodeS -> Sum (V3 0 224 0)
88+
SDL.ScancodeD -> Sum (V3 0 0 224)
8989
_ -> mempty
9090
| otherwise -> mempty
9191
_ -> mempty) $

0 commit comments

Comments
 (0)