Champollion
Champollion copied to clipboard
Precedence while casting bug
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.