diff options
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 | /* |