franko / luajit-lang-toolkit

A Lua bytecode compiler written in Lua itself for didactic purposes or for new language implementations
Other
655 stars 91 forks source link

fix bytecode generator error with nan constant expressions (0/0) #18

Closed q66 closed 9 years ago

q66 commented 9 years ago

otherwise expressions such as 0/0 will fail with "table index is nan".

q66 commented 9 years ago

hey, I updated the pull request with the solution you requested (and updated my language in the same way as well). I force-pushed into the repo to keep history clean.