FAQ  •  Register  •  Login

Optimizer bug (*solved*)

<<

einar

Posts: 84

Joined: Sun Apr 08, 2012 9:33 pm

Post Fri Aug 30, 2013 8:00 pm

Optimizer bug (*solved*)

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.
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Fri Nov 22, 2013 10:51 pm

Re: Optimizer bug

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).
<<

einar

Posts: 84

Joined: Sun Apr 08, 2012 9:33 pm

Post Wed Feb 12, 2014 5:51 pm

Re: Optimizer bug

Sorry for the late reply!

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

Thanks a lot!

Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 2 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO