summaryrefslogtreecommitdiff
path: root/assemble.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2009-08-16 12:00:01 +0400
committerH. Peter Anvin <hpa@zytor.com>2009-08-23 10:40:17 -0700
commit375752416159df2a77ed6e12a3fc74101b2b192c (patch)
tree4ad1256cbee776c9eb7cf331843607a8f18f244b /assemble.c
parent0dd450c0efc9474396759aea32acf2913a829bd4 (diff)
downloadnasm-375752416159df2a77ed6e12a3fc74101b2b192c.tar.gz
nasm-375752416159df2a77ed6e12a3fc74101b2b192c.tar.bz2
nasm-375752416159df2a77ed6e12a3fc74101b2b192c.zip
Use I_none opcode instead of hardcoded number
Consolidate I_none opcode to be used everywhere instead of mix (-1,I_none). Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'assemble.c')
-rw-r--r--assemble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/assemble.c b/assemble.c
index 4d84cc0..d0c44cd 100644
--- a/assemble.c
+++ b/assemble.c
@@ -667,7 +667,7 @@ int64_t insn_size(int32_t segment, int64_t offset, int bits, uint32_t cp,
errfunc = error; /* to pass to other functions */
cpu = cp;
- if (instruction->opcode == -1)
+ if (instruction->opcode == I_none)
return 0;
if (instruction->opcode == I_DB || instruction->opcode == I_DW ||