mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-10 21:42:00 +03:00
mcview: zero extension of char to int.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
75039d9d4f
commit
fdc094324d
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user