Champollion icon indicating copy to clipboard operation
Champollion copied to clipboard

Precedence while casting bug

Open ArcaneTourist opened this issue 4 years ago • 0 comments

Apparent bug.

Compiling the following statement: Float x = 1000.00 / (y as Float * 60.0) And then de-compiling yields source without the parentheses: Float x = 1000.00 / y as Float * 60.0

So, if y==6, you get 10,000 instead of 2.7778

I haven't tested to see if this just happens when converting ints to floats or if it's wrong for every divide/multiply. This was seen with the executable from the Nexus Skyrim mod page https://www.nexusmods.com/skyrim/mods/35307.

ArcaneTourist avatar Jun 14 '21 21:06 ArcaneTourist