mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
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 <hpa@zytor.com>
This commit is contained in:
parent
584f7a8f57
commit
b21141a301
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user