summaryrefslogtreecommitdiff
path: root/assemble.c
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 /assemble.c
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 'assemble.c')
-rw-r--r--assemble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/assemble.c b/assemble.c
index 7374139..f1583fd 100644
--- a/assemble.c
+++ b/assemble.c
@@ -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;
}