gvx/Ser

serializing odd values

CDSoft opened this issue · 0 comments

Hello,

inf and -inf values are not always "inf" and "-inf". When Lua is compiled with mingw on Windows, it's rather "1.#INF" and "-1.#INF".

oddvals should be:
local oddvals = {[tostring(1/0)] = '1/0', [tostring(-1/0)] = '-1/0', [tostring(0/0)] = '0/0'}

Best regards,
Christophe Delord.