aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-01-27 11:34:32 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-01-27 11:34:32 -0200
commit86dd8bf3f58f118003d4b02773be08b68a5091ef (patch)
tree024776667a483fe4ed319f77ae050968a2f12a7b /lapi.c
parent67c5de928349bfff6ed8b4ae5ed1abe05abcb08e (diff)
downloadlua-86dd8bf3f58f118003d4b02773be08b68a5091ef.tar.gz
lua-86dd8bf3f58f118003d4b02773be08b68a5091ef.tar.bz2
lua-86dd8bf3f58f118003d4b02773be08b68a5091ef.zip
no more 'L' in macros "luai_num*" (several places that use those macros
cannot throw errors anyway...)
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;