lua-users home
lua-l archive

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


> 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.