(strout): Treat the characters at *ptr as unsigned char.
This commit is contained in:
parent
01056f71f7
commit
ada329e63f
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
|
||||
|
||||
* print.c (strout): Cast the character passed to insert_char to
|
||||
unsigned char, to avoid sign extension when it is promoted to int.
|
||||
|
||||
2001-07-31 Gerd Moellmann <gerd@gnu.org>
|
||||
|
||||
* fileio.c (Finsert_file_contents): Don't treat a return value
|
||||
|
|
|
@ -401,7 +401,7 @@ strout (ptr, size, size_byte, printcharfun, multibyte)
|
|||
if (size == size_byte)
|
||||
{
|
||||
for (i = 0; i < size; ++i)
|
||||
insert_char (*ptr++);
|
||||
insert_char ((unsigned char )*ptr++);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue