[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: lua crashes with 64-bit integers
- From: "Todor Totev" <umbra.tenebris@...>
- Date: Thu, 03 Aug 2006 14:15:16 +0300
Hello all,
i'm using Lua 5.0.2 with lua_Number defined as __int64
(Microsoft VC under Windows NT).
Now, the simple expression
=1/0
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?
Regards,
Todor