Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Optimizer bug (*solved*)
#1
Try running this program:

Code:
sub x2()
    DIM a AS UBYTE

    LET a = 129
    IF (a >= 224) OR (a <= 32) THEN
        PRINT "Ops"
    ELSE
        PRINT "OK"
    END IF
end sub

x2()

If compiled using "-O3" it will print "Ops", otherwise it will print "OK".

Tested using ZX BASIC version 1.3.0s1022.
Reply
#2
Wow! This one took sometime to fix :oops: sorry!
Can you download version ZX BASIC v1.3.0-s1112 and check it, please?
This version also changes license (now LGPL).
Reply
#3
Sorry for the late reply!

I can confirm this bug has been fixed in current stable version 1.3.0s1121.

Thanks a lot!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)