From b21141a30128d2d2d8001cd4d9babab18366b867 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 23 Oct 2008 20:49:09 -0700 Subject: [PATCH] When issuing warnings for EA displacements, use the *EA* operand When issuing warnings for EA displacements during address generation, actually look a the proper operand! Signed-off-by: H. Peter Anvin --- assemble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.11.4.GIT