diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-08-27 12:14:57 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-08-27 12:14:57 -0300 |
commit | 7afc74ff07907294a2162600023a9c61a64cdbd5 (patch) | |
tree | 9173b9f04c1f5b5b1898f5068b917da93c7167df /lopcodes.h | |
parent | 022bf2720287dd079e3e575c01ceaabfbb37489b (diff) | |
download | lua-7afc74ff07907294a2162600023a9c61a64cdbd5.tar.gz lua-7afc74ff07907294a2162600023a9c61a64cdbd5.tar.bz2 lua-7afc74ff07907294a2162600023a9c61a64cdbd5.zip |
avoid some warnings from strange compilers
Diffstat (limited to 'lopcodes.h')
-rw-r--r-- | lopcodes.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.h,v 1.77 2001/07/03 17:01:34 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.78 2001/07/24 17:19:07 roberto Exp roberto $ |
3 | ** Opcodes for Lua virtual machine | 3 | ** Opcodes for Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -213,7 +213,7 @@ enum OpModeMask { | |||
213 | OpModeT /* operator is a test */ | 213 | OpModeT /* operator is a test */ |
214 | }; | 214 | }; |
215 | 215 | ||
216 | extern const lu_byte luaP_opmodes[]; | 216 | extern const lu_byte luaP_opmodes[NUM_OPCODES]; |
217 | 217 | ||
218 | #define getOpMode(m) ((enum OpMode)(luaP_opmodes[m] & 3)) | 218 | #define getOpMode(m) ((enum OpMode)(luaP_opmodes[m] & 3)) |
219 | #define testOpMode(m, b) (luaP_opmodes[m] & (1 << (b))) | 219 | #define testOpMode(m, b) (luaP_opmodes[m] & (1 << (b))) |