summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-10-23 20:49:09 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-10-23 20:49:09 -0700
commitb21141a30128d2d2d8001cd4d9babab18366b867 (patch)
treeb226ce8fe0a5d807f22b3421c070850272cf52e9
parent584f7a8f5742b11b1ef46eb220e5b0cdfa278c51 (diff)
downloadnasm-2.05.tar.gz
When issuing warnings for EA displacements, use the *EA* operandnasm-2.05
When issuing warnings for EA displacements during address generation, actually look a the proper operand! Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--assemble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/assemble.c b/assemble.c
index aea3a5e8..3f729918 100644
--- a/assemble.c
+++ b/assemble.c
@@ -1808,7 +1808,7 @@ static void gencode(int32_t segment, int64_t offset, int bits,
case 2:
case 4:
data = ins->oprs[(c >> 3) & 7].offset;
- warn_overflow(ea_data.bytes, opx);
+ warn_overflow(ea_data.bytes, &ins->oprs[(c >> 3) & 7]);
s += ea_data.bytes;
if (ea_data.rip) {
if (ins->oprs[(c >> 3) & 7].segment == segment) {