[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: math.modf() with floats?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 7 Jan 2014 07:36:46 -0200
> the standard library implementation of math_modf which is used by lua
> ends up passing a pointer to a float to the standard library modf function.
If your C library supports float variants of the standard math functions,
you should be able to use modff by changing l_mathop in luaconf.h to
#define l_mathop(op) op##f
Otherwise, yes, there is a problem with the code of math_modf.
Thanks for the report.