From ad3817fcc317250f0459155b6965fa2d78524113 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 25 Jun 2020 11:51:29 +0200 Subject: [PATCH] Silence gcc warning about overflow. --- utf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utf.c b/utf.c index 1705183..3c97ce3 100644 --- a/utf.c +++ b/utf.c @@ -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; }