aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/c_loader.iom
diff options
context:
space:
mode:
authorNicolas Schodet2024-03-08 17:15:09 +0100
committerNicolas Schodet2024-03-08 17:19:04 +0100
commit3a3201ff808c1258bd8cea8c6ae471c446dd2ed9 (patch)
treecc95aad971dadabbbe56a033a8c7f5e90eae9796 /src/c_loader.iom
parente724e2be533c3b1571aaa2020af78e76e8b3b573 (diff)
Fix signed float to int conversion
This can be visible using this test: task main() { float a = -12.34; NumOut(0, 32, a); char b = a; NumOut(0, 24, b); Wait(3000); } Thanks to Andreas Weber for reporting the problem and for the test program. This was actually fixed in NXT Enhanced Firmware, not sure if it was by accident or not as the original firmware source code comment suggests that special casing this conversion could improve speed. Imported from NXT Enhanced Firmware.
Diffstat (limited to 'src/c_loader.iom')
0 files changed, 0 insertions, 0 deletions