Closed qetchlijn closed 4 years ago
The function ud_translate_att in syn-att.c declares a local variable, size, and sets it to zero:
ud_translate_att
syn-att.c
size
extern void ud_translate_att(struct ud *u) { int size = 0;
A bit further down there's code conditional on size to append a size suffix to the mnemonic:
if (size == 8) { ud_asmprintf(u, "b"); } else if (size == 16) { ud_asmprintf(u, "w"); } else if (size == 64) { ud_asmprintf(u, "q"); }
However, size is never changed from its initial value of zero, so the suffix is never added.
Should there be some additional logic to change the value of size in cases where a size suffix is required?
I'm closing this as it duplicates a problem noted in issue #113.
The function
ud_translate_att
insyn-att.c
declares a local variable,size
, and sets it to zero:A bit further down there's code conditional on
size
to append a size suffix to the mnemonic:However,
size
is never changed from its initial value of zero, so the suffix is never added.Should there be some additional logic to change the value of
size
in cases where a size suffix is required?