mcview: zero extension of char to int.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2015-09-19 21:17:50 +03:00 committed by Slava Zanko
parent 75039d9d4f
commit fdc094324d
2 changed files with 2 additions and 2 deletions

View File

@ -248,7 +248,7 @@ mcview_get_byte_string (WView * view, off_t byte_index, int *retval)
return FALSE;
if (retval != NULL)
*retval = *p;
*retval = (unsigned char) (*p);
return TRUE;
}

View File

@ -268,7 +268,7 @@ mcview_get_byte_growing_buffer (WView * view, off_t byte_index, int *retval)
return FALSE;
if (retval != NULL)
*retval = *p;
*retval = (unsigned char) (*p);
return TRUE;
}