Silence gcc warning about overflow.

This commit is contained in:
Tor Andersson
2020-06-25 11:51:29 +02:00
parent 9f3e141d80
commit ad3817fcc3

4
utf.c
View File

@@ -133,8 +133,8 @@ runetochar(char *str, const Rune *rune)
/* overlong null character */
if (c == 0) {
str[0] = 0xc0;
str[1] = 0x80;
str[0] = (char)0xc0;
str[1] = (char)0x80;
return 2;
}