aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-04-27 14:39:15 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-04-27 14:39:15 -0300
commitc9f91c6fe300c77022216856bc49552d9d75f26d (patch)
tree58d7aa089557bfa4225cfaea42dc4e79aa5072ca
parent66d620674c3fbc0305e43a08cfd2abd990847c8c (diff)
downloadlua-c9f91c6fe300c77022216856bc49552d9d75f26d.tar.gz
lua-c9f91c6fe300c77022216856bc49552d9d75f26d.tar.bz2
lua-c9f91c6fe300c77022216856bc49552d9d75f26d.zip
[C++ Warning]: W8084 Suggest parentheses to clarify precedence.
-rw-r--r--lopcodes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lopcodes.h b/lopcodes.h
index 9df510a3..4dcec5aa 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.58 2000/04/13 16:51:01 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.59 2000/04/14 17:45:25 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*/
@@ -51,7 +51,7 @@
51#define GET_OPCODE(i) ((OpCode)((i)&MASK1(SIZE_OP,0))) 51#define GET_OPCODE(i) ((OpCode)((i)&MASK1(SIZE_OP,0)))
52#define SET_OPCODE(i,o) ((i) = (((i)&MASK0(SIZE_OP,0)) | (Instruction)(o))) 52#define SET_OPCODE(i,o) ((i) = (((i)&MASK0(SIZE_OP,0)) | (Instruction)(o)))
53 53
54#define CREATE_U(o,u) ((Instruction)(o) | (Instruction)(u)<<POS_U) 54#define CREATE_U(o,u) ((Instruction)(o) | ((Instruction)(u)<<POS_U))
55#define GETARG_U(i) ((int)((i)>>POS_U)) 55#define GETARG_U(i) ((int)((i)>>POS_U))
56#define SETARG_U(i,u) ((i) = (((i)&MASK0(SIZE_U,POS_U)) | \ 56#define SETARG_U(i,u) ((i) = (((i)&MASK0(SIZE_U,POS_U)) | \
57 ((Instruction)(u)<<POS_U))) 57 ((Instruction)(u)<<POS_U)))