Closed AGPX closed 1 year ago
Tried this myself, apparently it's something specific with division, all the other operations seem to work fine.
Please double check how the sign is handled.
Yes, the bug was in LONG division.
Please download v3.1.9
A new XC=Basic tech demo is coming, stay tuned :-)
Cool! Keep us updated. Thanks.
Hi again,
I'm stuck with a project in XC=Basic (I'm the author of the Pac-Man and Labyrinth-3D) due to a bug in the compiler. If you try the following code:
It should print -4, but instead it print 4. If you replace LONG with INT, the result is correct (looks like that the division is the problem, because A - B is printed correctly as -12000).
Please support.