From 874d317334fae1ddce316f9b6f4d0ce4e434bf52 Mon Sep 17 00:00:00 2001 From: Thomas Ulmer Date: Tue, 23 Jun 2026 21:34:41 -0700 Subject: heirloom vi fixes from arch AUR --- libuxre/wcharm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libuxre/wcharm.h') diff --git a/libuxre/wcharm.h b/libuxre/wcharm.h index 8985d6b..9df1e8b 100644 --- a/libuxre/wcharm.h +++ b/libuxre/wcharm.h @@ -55,8 +55,8 @@ typedef int w_type; #define ISONEBYTE(ch) (((ch) & 0200) == 0 || mb_cur_max == 1) -#define to_lower(ch) (mb_cur_max > 1 ? towlower(ch) : tolower(ch)) -#define to_upper(ch) (mb_cur_max > 1 ? towupper(ch) : toupper(ch)) +#define to_lower(ch) (mb_cur_max > 1 ? towlower(ch) : (wint_t)tolower(ch)) +#define to_upper(ch) (mb_cur_max > 1 ? towupper(ch) : (wint_t)toupper(ch)) LIBUXRE_STATIC int libuxre_mb2wc(w_type *, const unsigned char *); -- cgit v1.2.3