![]() |
v1.8.9 : IF / ULONG > ULONG() array comparison bug (*solved*) - Printable Version +- Boriel Basic Forum (https://forum.boriel.com) +-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11) +---- Forum: Bug Reports (https://forum.boriel.com/forumdisplay.php?fid=15) +---- Thread: v1.8.9 : IF / ULONG > ULONG() array comparison bug (*solved*) (/showthread.php?tid=870) |
v1.8.9 : IF / ULONG > ULONG() array comparison bug (*solved*) - JMcGibbitts - 2019-02-05 Hello Boriel, my first post here, so I'm sorry it's to report a bug. I found a problem when comparing a ULONG variable with any entry in an array of ULONGs. Saving the array entry to a temporary ULONG variable to compare with is a workaround. The problem seems to happen with v1.87, so is perhaps an older bug. A working code comparison sample is pasted below. The code purpose is to find where to insert a page number in an array of page numbers, where the pages are stored in correct sequence but are not simply incrementing numbers. Switch between SUBs v1() / v2() to compare the output. Thanks Code: ' ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Re: v1.8.9 : IF / ULONG > ULONG() array comparison bug - boriel - 2019-02-09 This bug was fixed in version 1.8.8 Please download 1.8.9 and try. I've checked and your program run ok ![]() Re: v1.8.9 : IF / ULONG > ULONG() array comparison bug - JMcGibbitts - 2019-02-09 I have just used my local v1.8.9 zip to update the directory again, checked I copied everything across. It runs just fine. I apologize, as it seems for some stupid reason I must not have properly updated my install even since v1.8.7. :oops: Re: v1.8.9 : IF / ULONG > ULONG() array comparison bug - boriel - 2019-02-11 No worries! Indeed compiling programs is the best way to find new bugs. :wink: For the 1.9.x (currently I'm a bit busy) a lot of testing will be needed since it changes a lot in the optimizer. |