lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>> I think your change is wrong because there is no
>> guarantee that you will have an integer value on
>> the LHS of (n == -1).
SERIOUS typo on my part, I meant NOT an integer.
>
>It will not be an integer, it will be a double, (Lua_Number
>is a double on my system), and the compiler will type -1 as a
>double accordingly. Actually, I use 
>
> t = (time_t) fabs(n);
>