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 /assemble.c | |
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 'assemble.c')
-rw-r--r-- | assemble.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -213,7 +213,7 @@ static void add_asp(insn *, int); static enum ea_type process_ea(operand *, ea *, int, int, int, opflags_t); -static int has_prefix(insn * ins, enum prefix_pos pos, enum prefixes prefix) +static int has_prefix(insn * ins, enum prefix_pos pos, int prefix) { return ins->prefixes[pos] == prefix; } |