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 /lcode.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 'lcode.c')
-rw-r--r-- | lcode.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.c,v 2.76 2013/12/18 18:44:42 roberto Exp roberto $ | 2 | ** $Id: lcode.c,v 2.77 2013/12/30 20:47:58 roberto Exp roberto $ |
3 | ** Code generator for Lua | 3 | ** Code generator for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -364,7 +364,7 @@ int luaK_intK (FuncState *fs, lua_Integer n) { | |||
364 | */ | 364 | */ |
365 | static int luaK_numberK (FuncState *fs, lua_Number r) { | 365 | static int luaK_numberK (FuncState *fs, lua_Number r) { |
366 | TValue o; | 366 | TValue o; |
367 | lua_assert(!luai_numisnan(NULL, r) && !isminuszero(r)); | 367 | lua_assert(!luai_numisnan(r) && !isminuszero(r)); |
368 | setnvalue(&o, r); | 368 | setnvalue(&o, r); |
369 | return addk(fs, &o, &o); | 369 | return addk(fs, &o, &o); |
370 | } | 370 | } |
@@ -779,7 +779,7 @@ static int constfolding (OpCode op, expdesc *e1, expdesc *e2) { | |||
779 | } | 779 | } |
780 | else { | 780 | else { |
781 | lua_Number n = fltvalue(&res); | 781 | lua_Number n = fltvalue(&res); |
782 | if (luai_numisnan(NULL, n) || isminuszero(n)) | 782 | if (luai_numisnan(n) || isminuszero(n)) |
783 | return 0; /* folds neither NaN nor -0 */ | 783 | return 0; /* folds neither NaN nor -0 */ |
784 | e1->k = VKFLT; | 784 | e1->k = VKFLT; |
785 | e1->u.nval = n; | 785 | e1->u.nval = n; |