diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-04-03 10:35:34 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-04-03 10:35:34 -0300 |
commit | 0d88545b82b82671904474499b5d312141170ab6 (patch) | |
tree | 5a924d4d492dd987a5480a15cd1d12947089db85 /lauxlib.h | |
parent | f84c5a5fc68f83b3adad37919e0096ea3c7f4129 (diff) | |
download | lua-0d88545b82b82671904474499b5d312141170ab6.tar.gz lua-0d88545b82b82671904474499b5d312141170ab6.tar.bz2 lua-0d88545b82b82671904474499b5d312141170ab6.zip |
warnings from several compilers (mainly typecasts when lua_Number is float)
Diffstat (limited to 'lauxlib.h')
-rw-r--r-- | lauxlib.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.h,v 1.58 2003/02/11 15:32:31 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.59 2003/03/18 12:25:32 roberto Exp roberto $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -76,8 +76,8 @@ LUALIB_API int luaL_loadbuffer (lua_State *L, const char *buff, size_t sz, | |||
76 | #define luaL_optstring(L,n,d) (luaL_optlstring(L, (n), (d), NULL)) | 76 | #define luaL_optstring(L,n,d) (luaL_optlstring(L, (n), (d), NULL)) |
77 | #define luaL_checkint(L,n) ((int)luaL_checknumber(L, n)) | 77 | #define luaL_checkint(L,n) ((int)luaL_checknumber(L, n)) |
78 | #define luaL_checklong(L,n) ((long)luaL_checknumber(L, n)) | 78 | #define luaL_checklong(L,n) ((long)luaL_checknumber(L, n)) |
79 | #define luaL_optint(L,n,d) ((int)luaL_optnumber(L, n,d)) | 79 | #define luaL_optint(L,n,d) ((int)luaL_optnumber(L, n,(lua_Number)(d))) |
80 | #define luaL_optlong(L,n,d) ((long)luaL_optnumber(L, n,d)) | 80 | #define luaL_optlong(L,n,d) ((long)luaL_optnumber(L, n,(lua_Number)(d))) |
81 | 81 | ||
82 | 82 | ||
83 | /* | 83 | /* |