mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-19 18:00:23 +08:00
Move declarations before statements
C99 permits declarations and statements to be intermixed, so gcc don't warn about them, but MSVC and OpenWatcom get unhappy about them.
This commit is contained in:
parent
7fec73d785
commit
e3917fc538
@ -788,9 +788,10 @@ static int32_t calcsize(int32_t segment, int32_t offset, int bits,
|
||||
int32_t length = 0;
|
||||
uint8_t c;
|
||||
int rex_mask = ~0;
|
||||
ins->rex = 0; /* Ensure REX is reset */
|
||||
struct operand *opx;
|
||||
|
||||
ins->rex = 0; /* Ensure REX is reset */
|
||||
|
||||
if (ins->prefixes[PPS_OSIZE] == P_O64)
|
||||
ins->rex |= REX_W;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user