From 037a70dfea9de66e8d27c8d3ce2ed9f159a1b094 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 15 Apr 2014 13:32:49 -0300 Subject: cast_u2s/cast_s2u renamed l_castS2U/l_castU2S to be configurable from outside (mostly for testing) --- lapi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lapi.c') diff --git a/lapi.c b/lapi.c index dc620081..7f85ebd5 100644 --- a/lapi.c +++ b/lapi.c @@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 2.203 2014/04/12 14:45:10 roberto Exp roberto $ +** $Id: lapi.c,v 2.204 2014/04/15 14:29:30 roberto Exp roberto $ ** Lua API ** See Copyright Notice in lua.h */ @@ -376,7 +376,7 @@ LUA_API lua_Unsigned lua_tounsignedx (lua_State *L, int idx, int *pisnum) { int isnum = 0; switch (ttype(o)) { case LUA_TNUMINT: { - res = cast_s2u(ivalue(o)); + res = l_castS2U(ivalue(o)); isnum = 1; break; } @@ -514,7 +514,7 @@ LUA_API void lua_pushinteger (lua_State *L, lua_Integer n) { LUA_API void lua_pushunsigned (lua_State *L, lua_Unsigned u) { lua_lock(L); - setivalue(L->top, cast_u2s(u)); + setivalue(L->top, l_castU2S(u)); api_incr_top(L); lua_unlock(L); } -- cgit v1.2.3-55-g6feb