diff options
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 2.182 2013/06/14 18:32:45 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 2.183 2013/06/20 15:02:49 roberto Exp roberto $ |
3 | ** Lua API | 3 | ** Lua API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -399,7 +399,7 @@ LUA_API lua_Unsigned lua_tounsignedx (lua_State *L, int idx, int *pisnum) { | |||
399 | if (luai_numisnan(L,n)) /* not a number? */ | 399 | if (luai_numisnan(L,n)) /* not a number? */ |
400 | break; /* not an integer, too */ | 400 | break; /* not an integer, too */ |
401 | res = cast_unsigned(n); | 401 | res = cast_unsigned(n); |
402 | if (neg) res = -res; | 402 | if (neg) res = 0u - res; |
403 | isnum = 1; | 403 | isnum = 1; |
404 | break; | 404 | break; |
405 | } | 405 | } |