(strout): Treat the characters at *ptr as unsigned char.

This commit is contained in:
Eli Zaretskii 2001-08-01 08:29:28 +00:00
parent 01056f71f7
commit ada329e63f
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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
{