From d4707925176f94a29e69ff92f6618f36ca1928dd Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 30 Mar 1998 10:57:23 -0300 Subject: words are stored in hi-lo order (easier to print) --- lua.stx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua.stx') diff --git a/lua.stx b/lua.stx index fcfd9aa0..41aff108 100644 --- a/lua.stx +++ b/lua.stx @@ -1,6 +1,6 @@ %{ /* -** $Id: lua.stx,v 1.35 1998/03/09 21:49:52 roberto Exp roberto $ +** $Id: lua.stx,v 1.36 1998/03/25 18:52:29 roberto Exp roberto $ ** Syntax analizer and code generator ** See Copyright Notice in lua.h */ @@ -149,8 +149,8 @@ static int code_oparg_at (int pc, OpCode op, int builtin, int arg, int delta) } else if (arg <= MAX_WORD) { code[pc] = op+1+builtin; - code[pc+1] = arg&0xFF; - code[pc+2] = arg>>8; + code[pc+1] = arg>>8; + code[pc+2] = arg&0xFF; return 3; } else luaY_error("code too long " MES_LIM("64K")); -- cgit v1.2.3-55-g6feb