aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-02-09 16:01:55 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-02-09 16:01:55 -0200
commitb82ff713e321f4b65b2dc41fc1fe97633f7b197d (patch)
tree4b879a95ef1b9eedd9e13d9536452d7525f197d1 /lparser.c
parent77113ee02f383848cd4877e2780c36ffb4405b84 (diff)
downloadlua-b82ff713e321f4b65b2dc41fc1fe97633f7b197d.tar.gz
lua-b82ff713e321f4b65b2dc41fc1fe97633f7b197d.tar.bz2
lua-b82ff713e321f4b65b2dc41fc1fe97633f7b197d.zip
new name for opcode
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lparser.c b/lparser.c
index c41f8b49..bdc5e76e 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 1.18 1999/02/08 18:54:19 roberto Exp roberto $ 2** $Id: lparser.c,v 1.19 1999/02/09 15:59:10 roberto Exp roberto $
3** LL(1) Parser and code generator for Lua 3** LL(1) Parser and code generator for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -270,7 +270,7 @@ static void code_number (LexState *ls, real f) {
270 real af = (f<0) ? -f : f; 270 real af = (f<0) ? -f : f;
271 if (0 <= af && af <= (real)MAX_WORD && (int)af == af) { 271 if (0 <= af && af <= (real)MAX_WORD && (int)af == af) {
272 /* abs(f) has a short integer value */ 272 /* abs(f) has a short integer value */
273 code_oparg(ls, (f<0) ? PUSHNEG : PUSHNUMBER, (int)af, 1); 273 code_oparg(ls, (f<0) ? PUSHNUMBERNEG : PUSHNUMBER, (int)af, 1);
274 } 274 }
275 else 275 else
276 code_constant(ls, real_constant(ls->fs, f)); 276 code_constant(ls, real_constant(ls->fs, f));