diff options
Diffstat (limited to 'lua.stx')
-rw-r--r-- | lua.stx | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ | |||
1 | %{ | 1 | %{ |
2 | /* | 2 | /* |
3 | ** $Id: lua.stx,v 1.35 1998/03/09 21:49:52 roberto Exp roberto $ | 3 | ** $Id: lua.stx,v 1.36 1998/03/25 18:52:29 roberto Exp roberto $ |
4 | ** Syntax analizer and code generator | 4 | ** Syntax analizer and code generator |
5 | ** See Copyright Notice in lua.h | 5 | ** See Copyright Notice in lua.h |
6 | */ | 6 | */ |
@@ -149,8 +149,8 @@ static int code_oparg_at (int pc, OpCode op, int builtin, int arg, int delta) | |||
149 | } | 149 | } |
150 | else if (arg <= MAX_WORD) { | 150 | else if (arg <= MAX_WORD) { |
151 | code[pc] = op+1+builtin; | 151 | code[pc] = op+1+builtin; |
152 | code[pc+1] = arg&0xFF; | 152 | code[pc+1] = arg>>8; |
153 | code[pc+2] = arg>>8; | 153 | code[pc+2] = arg&0xFF; |
154 | return 3; | 154 | return 3; |
155 | } | 155 | } |
156 | else luaY_error("code too long " MES_LIM("64K")); | 156 | else luaY_error("code too long " MES_LIM("64K")); |