long subtraction confusion
robotc-3.62 on Windows 8.1 64-bit.
The result of subtraction according to the PC-Based emulator is -5636. The correct answer, weirdly, ends up in the a variable.
The values reported by the debugger when running under PC-Based Emulator at the line with the comment is a=59900, b=60000, c=59900. This time, the correct value is surprisingly stored into «c» in addition to being incorrectly stored into «a».
So, I was attempting to use longs in my logic. I guess that I will have to look at what each attempt at long subtraction ends up doing with the debugger and determine, case by case, which variables end up with the right results and which variables get trashed. May someone verify that this is a bug? Are there any reliable workarounds for this behavior?