summaryrefslogtreecommitdiff
path: root/nasm.h
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2011-11-12 11:41:51 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2011-11-12 11:41:51 +0400
commit18914e63305314b36e550439b41e0bf157cf338d (patch)
tree8d58e79a5794dbd7fe9052511b6973823c15a9a2 /nasm.h
parent013da297826144e400e84db7c04e4dfd21532dce (diff)
downloadnasm-18914e63305314b36e550439b41e0bf157cf338d.tar.gz
nasm-18914e63305314b36e550439b41e0bf157cf338d.tar.bz2
nasm-18914e63305314b36e550439b41e0bf157cf338d.zip
BR3392198: Fix compilation warning on prefixes
insn->prefixes might contain not only values from 'enum prefixes' but from 'enum reg_enum' as well so make it generic 'int' instead. This calms down the compiler about enum's mess and eliminates a wrong assumption that we always have values by particular type in this field. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'nasm.h')
-rw-r--r--nasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nasm.h b/nasm.h
index 46fa6f5..01f9ffc 100644
--- a/nasm.h
+++ b/nasm.h
@@ -561,7 +561,7 @@ enum prefix_pos {
typedef struct insn { /* an instruction itself */
char *label; /* the label defined, or NULL */
- enum prefixes prefixes[MAXPREFIX]; /* instruction prefixes, if any */
+ int prefixes[MAXPREFIX]; /* instruction prefixes, if any */
enum opcode opcode; /* the opcode - not just the string */
enum ccode condition; /* the condition code, if Jcc/SETcc */
int operands; /* how many operands? 0-3 (more if db et al) */