fix 32bit build warnings - some buglets, some just noise

devs/simotek/colorschemes
Carsten Haitzler 1 year ago
parent 2f5d1d8ce8
commit cb4e0b2feb
  1. 6
      src/bin/termpty.c
  2. 4
      src/bin/termptyesc.c

@ -292,7 +292,7 @@ _handle_read(Termpty *ty, Eina_Bool false_on_empty)
{
g = eina_unicode_utf8_next_get(buf, &i);
if ((0xdc80 <= g) && (g <= 0xdcff) &&
(len - prev_i) <= (int)sizeof(ty->oldbuf))
(len - (int)prev_i) <= (int)sizeof(ty->oldbuf))
{
unsigned int k;
@ -303,7 +303,7 @@ _handle_read(Termpty *ty, Eina_Bool false_on_empty)
{
ty->oldbuf[k] = buf[prev_i+k];
}
DBG("failure at %d/%d/%d", prev_i, i, len);
DBG("failure at %d/%d/%d", (int)prev_i, (int)i, len);
break;
}
}
@ -789,7 +789,7 @@ termpty_new(const char *cmd, Eina_Bool login_shell, const char *cd,
{
char buf[256];
snprintf(buf, sizeof(buf), "WINDOWID=%lu", window_id);
snprintf(buf, sizeof(buf), "WINDOWID=%lu", (unsigned long)window_id);
putenv(buf);
}
#if ((EFL_VERSION_MAJOR > 1) || (EFL_VERSION_MINOR >= 24)) || ((EFL_VERSION_MAJOR == 1) && (EFL_VERSION_MINOR == 23) && (EFL_VERSION_MICRO == 99))

@ -3569,7 +3569,7 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, const Eina_Unicode *ce)
}
break;
default:
ERR("unhandled '0x%x' CSI escape code", *cc);
ERR("unhandled '0x%x' CSI escape code", (int)*cc);
goto unhandled;
}
cc++;
@ -4966,7 +4966,7 @@ end:
for (j = 0; c + j < ce && j < len; j++)
{
if ((c[j] < ' ') || (c[j] >= 0x7f))
printf("\033[35m%08x\033[0m", c[j]);
printf("\033[35m%08x\033[0m", (int)c[j]);
else
printf("%s", termptyesc_safechar(c[j]));
}

Loading…
Cancel
Save