diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2011-11-12 11:41:51 +0400 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2011-11-12 11:41:51 +0400 |
commit | 18914e63305314b36e550439b41e0bf157cf338d (patch) | |
tree | 8d58e79a5794dbd7fe9052511b6973823c15a9a2 /nasm.h | |
parent | 013da297826144e400e84db7c04e4dfd21532dce (diff) | |
download | nasm-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) */ |