diff options
author | Father Chrysostomos <sprout@cpan.org> | 2013-08-27 13:00:24 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2013-08-27 20:28:58 -0700 |
commit | 4df947eef25458ac284980050e91eacbe0a1bf97 (patch) | |
tree | e26d75d05800973c6e62d33c7ffdafefbb017d05 /mg.h | |
parent | 38d2280fe891657ac2f57fd277d378edccd5ac11 (diff) | |
download | perl-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |