summaryrefslogtreecommitdiff
path: root/libuxre/wcharm.h
diff options
context:
space:
mode:
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 *);