diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-07-24 14:19:07 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-07-24 14:19:07 -0300 |
| commit | 95988676d8f5ba05c83eda84e2e7369ae854b855 (patch) | |
| tree | f92643c89f15e0dd6bccd283cce1b030b00b4ad2 /lcode.h | |
| parent | 767abdfdc0bb9c98d1f0cc6aac0cdc72d4713d65 (diff) | |
| download | lua-95988676d8f5ba05c83eda84e2e7369ae854b855.tar.gz lua-95988676d8f5ba05c83eda84e2e7369ae854b855.tar.bz2 lua-95988676d8f5ba05c83eda84e2e7369ae854b855.zip | |
small bug when creating AsBc instructions in 16-bit machines
Diffstat (limited to 'lcode.h')
| -rw-r--r-- | lcode.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lcode.h,v 1.22 2001/06/05 18:17:01 roberto Exp roberto $ | 2 | ** $Id: lcode.h,v 1.23 2001/06/12 14:36:48 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 | */ |
| @@ -39,7 +39,7 @@ typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_NOUNOPR } UnOpr; | |||
| 39 | #define luaK_codeAsBc(fs,o,A,sBc) luaK_codeABc(fs,o,A,(sBc)+MAXARG_sBc) | 39 | #define luaK_codeAsBc(fs,o,A,sBc) luaK_codeABc(fs,o,A,(sBc)+MAXARG_sBc) |
| 40 | 40 | ||
| 41 | void luaK_error (LexState *ls, const l_char *msg); | 41 | void luaK_error (LexState *ls, const l_char *msg); |
| 42 | int luaK_codeABc (FuncState *fs, OpCode o, int A, int Bc); | 42 | int luaK_codeABc (FuncState *fs, OpCode o, int A, unsigned int Bc); |
| 43 | int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); | 43 | int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); |
| 44 | void luaK_nil (FuncState *fs, int from, int n); | 44 | void luaK_nil (FuncState *fs, int from, int n); |
| 45 | void luaK_reserveregs (FuncState *fs, int n); | 45 | void luaK_reserveregs (FuncState *fs, int n); |
