*/
static unsigned get_signed_imm_size(int offset)
{
- if (offset >= -127 && offset < 128) {
+ if (-128 <= offset && offset < 128) {
return 1;
} else if (offset >= -32768 && offset < 32767) {
return 2;
} else if (offs == 0) {
modrm |= MOD_IND;
emitoffs = 0;
- } else if (offs >= -127 && offs <= 128) {
+ } else if (-128 <= offs && offs < 128) {
modrm |= MOD_IND_BYTE_OFS;
emitoffs = 8;
} else {
switch (am_type) {
case ia32_AddrModeS:
d = 2;
- /*fallthrough*/
+ /* FALLTHROUGH */
case ia32_AddrModeD:
bemit8(code | d);
bemit_mod_am(reg_gp_map[out->index], node);