path: root/firmware
diff options
authorWilliam Wilgus <>2018-02-05 07:28:08 +0100
committerWilliam Wilgus <>2018-06-05 18:47:57 +0200
commit9a9c7f2b7c63a9db203084a3485988c07f17b86c (patch)
tree45f28419ba4c86b29a83f1ddc1eac9beac1df97c /firmware
parent80bb6ccdc495c4a31b3b4433001b3fdee36229fc (diff)
Fix lua failure to catch divide by zero and NaN exceptions
I can only assume in the course of the original conversion to fixed point math in RbLua the fact that division by zero and NaN handling was to be caught as a graceful exception by the floating point handler was overlooked. As a result lua doesn't handle these exceptions and instead results in a panic on the device. This patch fixes this handling in the lexer for compile time Inf and Nan results and in the luavm for runtime division by zero (Inf) I missed the runtime exception of n%0 added checks for that as well.. Change-Id: I7746c087ea93678e5875f15ec6fe3f29f26bdb31
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions