diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-01-27 11:34:32 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-01-27 11:34:32 -0200 |
| commit | 86dd8bf3f58f118003d4b02773be08b68a5091ef (patch) | |
| tree | 024776667a483fe4ed319f77ae050968a2f12a7b /lapi.c | |
| parent | 67c5de928349bfff6ed8b4ae5ed1abe05abcb08e (diff) | |
| download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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; |
