summaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcode.c')
-rw-r--r--lcode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lcode.c b/lcode.c
index 2da5e73a..f582b7dc 100644
--- a/lcode.c
+++ b/lcode.c
@@ -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*/
365static int luaK_numberK (FuncState *fs, lua_Number r) { 365static 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;