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:
H. Peter Anvin 2007-11-01 14:53:32 -07:00
parent 7fec73d785
commit e3917fc538

View File

@ -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;