discovered crash about storage size mismatch

This commit is contained in:
Irmen de Jong 2021-11-08 21:44:06 +01:00
parent c8a4b6f23c
commit 4cb383dccb
2 changed files with 10 additions and 6 deletions

View File

@ -5,6 +5,11 @@ For next compiler release (7.3)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- if-statement expression simplification sometimes increases code size (Petaxian) FIX THIS!
- add expression simplification to while and until loops as well.
- fix crash about storage size mismatch
ubyte bb
uword ww
bb = not bb or not ww ; CRASHES
Blocked by Commander-x16 v39 release

View File

@ -8,13 +8,12 @@ main {
ubyte unused ; TODO FIX : why is this not removed as an unused variable?
ubyte iteration_in_progress
uword num_bytes
ubyte bb
uword ww
bb = not bb or not ww ; TODO FIX COMPILER CRASH (STORAGE SIZE)
ubyte qq = not iteration_in_progress or not num_bytes ; TODO FIX COMPILER CRASH (STORAGE SIZE)
if not iteration_in_progress or not num_bytes
return
; if not iteration_in_progress or not num_bytes
; return
; word xx=0
; word[] xarr = [1,2,3]