fix sign compare warn - no real bug to see here

This commit is contained in:
Carsten Haitzler 2019-05-13 15:03:32 +01:00 committed by Boris Faure
parent c7d92ecc6c
commit e1e2a20d71
1 changed files with 3 additions and 2 deletions

View File

@ -226,7 +226,8 @@ _fd_read_do(Termpty *ty, Ecore_Fd_Handler *fd_handler, Eina_Bool false_on_empty)
{ {
char buf[4097]; char buf[4097];
Eina_Unicode codepoint[4097]; Eina_Unicode codepoint[4097];
int len, i, j, k, reads; int len, i, j, reads;
unsigned int k;
if (ecore_main_fd_handler_active_get(fd_handler, ECORE_FD_ERROR)) if (ecore_main_fd_handler_active_get(fd_handler, ECORE_FD_ERROR))
{ {
@ -311,7 +312,7 @@ _fd_read_do(Termpty *ty, Ecore_Fd_Handler *fd_handler, Eina_Bool false_on_empty)
(len - prev_i) <= (int)sizeof(ty->oldbuf)) (len - prev_i) <= (int)sizeof(ty->oldbuf))
{ {
for (k = 0; for (k = 0;
(k < (int)sizeof(ty->oldbuf)) && (k < (unsigned int)sizeof(ty->oldbuf)) &&
(k < (len - prev_i)); (k < (len - prev_i));
k++) k++)
{ {