aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index de13bd62..05640ef9 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.191 2013/12/04 12:15:22 roberto Exp roberto $ 2** $Id: lapi.c,v 2.192 2013/12/30 20:47:58 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*/
@@ -389,7 +389,7 @@ LUA_API lua_Unsigned lua_tounsignedx (lua_State *L, int idx, int *pisnum) {
389 n = -n; 389 n = -n;
390 } 390 }
391 n = l_mathop(fmod)(n, twop); 391 n = l_mathop(fmod)(n, twop);
392 if (luai_numisnan(L,n)) /* not a number? */ 392 if (luai_numisnan(n)) /* not a number? */
393 break; /* not an integer, too */ 393 break; /* not an integer, too */
394 res = cast_unsigned(n); 394 res = cast_unsigned(n);
395 if (neg) res = 0u - res; 395 if (neg) res = 0u - res;