summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorNicolas R <atoomic@cpan.org>2017-11-29 14:07:15 -0700
committerNicolas R <atoomic@cpan.org>2017-11-29 14:23:09 -0700
commit5703b8ce86fe56bf7576cf157805335b074cc8a4 (patch)
tree3b7cc2afe659b6d5d6e251ec9b2539e75777ec76 /perl.h
parent8c20b11d5137b21b9b47609f4e97e1d5c3d355f1 (diff)
downloadperl-5703b8ce86fe56bf7576cf157805335b074cc8a4.tar.gz
mark MB_CUR_MAX constant as unsigned long
Avoid a warning in locale.c comparison of integers of different signs: 'int' and 'unsigned long' is_utf8 = MB_CUR_MAX >= STRLENs(MAX_UNICODE_UTF8); RT #132516
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index 2200a47c05..900452d81d 100644
--- a/perl.h
+++ b/perl.h
@@ -686,7 +686,7 @@
cewchar.h includes a correct definition of MB_CUR_MAX and it is copied here
since cewchar.h can't be included this early */
#if defined(UNDER_CE) && (_MSC_VER < 1300)
-# define MB_CUR_MAX 1
+# define MB_CUR_MAX 1uL
#endif
# include <stdarg.h>