diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2009-08-16 12:00:01 +0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-08-23 10:40:17 -0700 |
commit | 375752416159df2a77ed6e12a3fc74101b2b192c (patch) | |
tree | 4ad1256cbee776c9eb7cf331843607a8f18f244b /assemble.c | |
parent | 0dd450c0efc9474396759aea32acf2913a829bd4 (diff) | |
download | nasm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 || |