summaryrefslogtreecommitdiff
path: root/libuxre/wcharm.h
diff options
context:
space:
mode:
authorThomas Ulmer <thomasmulmer02@gmail.com>2026-06-23 21:34:41 -0700
committerThomas Ulmer <thomasmulmer02@gmail.com>2026-06-23 21:34:41 -0700
commit874d317334fae1ddce316f9b6f4d0ce4e434bf52 (patch)
tree929f924d3c3696d3aa9917aca0e7048bbe3e93e8 /libuxre/wcharm.h
parent15bd7946cc838a3151c357e4b0bc1ab85eecda62 (diff)
heirloom vi fixes from arch AUR
Diffstat (limited to 'libuxre/wcharm.h')
-rw-r--r--libuxre/wcharm.h4
1 files changed, 2 insertions, 2 deletions
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 *);