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

This commit is contained in:
Carsten Haitzler 2021-05-12 20:10:37 +01:00
parent 2f5d1d8ce8
commit cb4e0b2feb
2 changed files with 5 additions and 5 deletions

View File

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

View File

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