summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-12-27 22:17:10 -0700
committerKarl Williamson <khw@cpan.org>2020-01-03 21:55:15 -0700
commit100de20c48e8eb318406f6c2e9d269cd2adfae14 (patch)
tree13ce2374c8a711f285d4546e61ee87070b0d015b /utf8.c
parent9fde59141061b7875147a92b1e1dc991756c2e1e (diff)
downloadperl-100de20c48e8eb318406f6c2e9d269cd2adfae14.tar.gz
utf8.c: Use casts to silence some warnings
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utf8.c b/utf8.c
index 56c83bd6a8..819a48588a 100644
--- a/utf8.c
+++ b/utf8.c
@@ -2013,8 +2013,8 @@ Perl__utf8n_to_uvchr_msgs_helper(const U8 *s,
* valid, avoid as much as possible reading past the
* end of the buffer */
int printlen = (flags & _UTF8_NO_CONFIDENCE_IN_CURLEN)
- ? s - s0
- : send - s0;
+ ? (int) (s - s0)
+ : (int) (send - s0);
pack_warn = packWARN(WARN_UTF8);
message = Perl_form(aTHX_ "%s",
unexpected_non_continuation_text(s0,