diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-10-23 20:49:09 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-10-23 20:49:09 -0700 |
commit | b21141a30128d2d2d8001cd4d9babab18366b867 (patch) | |
tree | b226ce8fe0a5d807f22b3421c070850272cf52e9 | |
parent | 584f7a8f5742b11b1ef46eb220e5b0cdfa278c51 (diff) | |
download | nasm-b21141a30128d2d2d8001cd4d9babab18366b867.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |