Re: lua crashes with 64-bit integers
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: lua crashes with 64-bit integers
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 3 Aug 2006 08:25:28 -0300
> i'm using Lua 5.0.2 with lua_Number defined as __int64
> Now, the simple expression
>
> =1/0
>
> crashes Lua interpreter with Division by zero exception.
> I'd like to catch this exception and convert it to lua error.
Refedine luai_numdiv to test for 0 divisor.