[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Lua 5.2.1 lua_Number float warnings in MSVC 2010
- From: Alexey Baskakov <alexey_baskakov@...>
- Date: Wed, 16 Jan 2013 00:07:18 +0400
> MSVC 2010 produces the following warnings with patched luaconf.h at /W3
>
> src\lmathlib.c(150): warning C4244: 'function' : conversion from 'double' to 'lua_Number', possible loss of data
> src\lmathlib.c(155): warning C4244: 'function' : conversion from 'double' to 'lua_Number', possible loss of data
> src\lmathlib.c(214): warning C4244: 'function' : conversion from 'double' to 'lua_Number', possible loss of data
> src\lmathlib.c(279): warning C4244: 'function' : conversion from 'double' to 'lua_Number', possible loss of data
> src\lobject.c(107): warning C4244: '=' : conversion from 'double' to 'lua_Number', possible loss of data
> src\lobject.c(152): warning C4244: 'return' : conversion from 'double' to 'lua_Number', possible loss of data
> src\lobject.c(165): warning C4013: 'strtof' undefined; assuming extern returning int
> src\lobject.c(165): warning C4244: '=' : conversion from 'int' to 'lua_Number', possible loss of data
> src\loslib.c(268): warning C4244: 'function' : conversion from 'double' to 'lua_Number', possible loss of data
> src\ltable.c(82): warning C4244: '=' : conversion from 'double' to 'lua_Number', possible loss of data
>
>
> There are more at /W4.
>
> Anyway, the proposed patch doesn't look trivial. Especially if compared to changes required in Lua 5.1 to do the same.
>
>
Oops, this is fatal:
'strtof' undefined; assuming extern returning int
MSVC is missing strtof.
Alexey.