summaryrefslogtreecommitdiff
path: root/mg.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-08-27 13:00:24 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-08-27 20:28:58 -0700
commit4df947eef25458ac284980050e91eacbe0a1bf97 (patch)
treee26d75d05800973c6e62d33c7ffdafefbb017d05 /mg.h
parent38d2280fe891657ac2f57fd277d378edccd5ac11 (diff)
downloadperl-4df947eef25458ac284980050e91eacbe0a1bf97.tar.gz
mg.h: Suppress compiler warning
GCC says: pp_hot.c: In function 'Perl_pp_match': pp_hot.c:1453: warning: signed and unsigned type in conditional expression
Diffstat (limited to 'mg.h')
-rw-r--r--mg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mg.h b/mg.h
index 29e339f82c..81ed296f8a 100644
--- a/mg.h
+++ b/mg.h
@@ -66,8 +66,8 @@ struct magic {
SvPOK(sv) && !SvGMAGICAL(sv) \
? (mg)->mg_len = (off), (mg)->mg_flags |= MGf_BYTES \
: ((mg)->mg_len = DO_UTF8(sv) \
- ? utf8_length((U8 *)(pv), (U8 *)(pv)+(off)) \
- : (off), \
+ ? (SSize_t)utf8_length((U8 *)(pv), (U8 *)(pv)+(off)) \
+ : (SSize_t)(off), \
(mg)->mg_flags &= ~MGf_BYTES))
#endif