[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: lua crashes with 64-bit integers
- From: "Todor Totev" <umbra.tenebris@...>
- Date: Thu, 03 Aug 2006 14:15:16 +0300
i'm using Lua 5.0.2 with lua_Number defined as __int64
(Microsoft VC under Windows NT).
Now, the simple expression
crashes Lua interpreter with Division by zero exception.
The stock Lua using doubles properly writes 1.#INF as result.
I'd like to catch this exception and convert it to lua error.
How can I do this?