diff options
author | Lua Team <team@lua.org> | 2010-11-16 12:00:00 +0000 |
---|---|---|
committer | repogen <> | 2010-11-16 12:00:00 +0000 |
commit | ccd28dfe034d5dfd130e5378a147e3e9fe7f6807 (patch) | |
tree | f1c922e8064f556c1034511afbbb3376640c4d27 /src/lapi.c | |
parent | d4bba06f4b8264eee00b25ee08e982d348486aaf (diff) | |
download | lua-github-5.2.0-alpha-rc1.tar.gz |
Lua 5.2.0-alpha-rc15.2.0-alpha-rc1
Diffstat (limited to 'src/lapi.c')
-rw-r--r-- | src/lapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 2.139 2010/10/25 20:31:11 roberto Exp $ +** $Id: lapi.c,v 2.140 2010/11/03 15:16:17 roberto Exp $ ** Lua API ** See Copyright Notice in lua.h */ @@ -353,7 +353,7 @@ LUA_API lua_Unsigned lua_tounsignedx (lua_State *L, int idx, int *isnum) { if (tonumber(o, &n)) { lua_Unsigned res; lua_Number num = nvalue(o); - lua_number2uint(res, num); + lua_number2unsigned(res, num); if (isnum) *isnum = 1; return res; } @@ -472,7 +472,7 @@ LUA_API void lua_pushinteger (lua_State *L, lua_Integer n) { LUA_API void lua_pushunsigned (lua_State *L, lua_Unsigned u) { lua_Number n; lua_lock(L); - n = lua_uint2number(u); + n = lua_unsigned2number(u); setnvalue(L->top, n); api_incr_top(L); lua_unlock(L); |