summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorRobin Barker <rmbarker@cpan.org>2011-06-23 19:12:59 +0100
committerFather Chrysostomos <sprout@cpan.org>2011-06-24 08:27:52 -0700
commit2f2f3ec9c49055c69541020aa1bf644ca5f8b6f1 (patch)
treec83f4b3020019dc32577ccdc7ec3920a7a96cba0 /sv.c
parent6d1c68e64c4dbbb1c7e8a28de678cd3247649bad (diff)
downloadperl-2f2f3ec9c49055c69541020aa1bf644ca5f8b6f1.tar.gz
cast unsigned to avoid warning
Add a cast C<(unsigned)> to silence a compiler warning [-Wsign-compare]
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 04e040c20c..445f9d45e5 100644
--- a/sv.c
+++ b/sv.c
@@ -5244,7 +5244,7 @@ Perl_sv_magic(pTHX_ register SV *const sv, SV *const obj, const int how,
PERL_ARGS_ASSERT_SV_MAGIC;
- if (how < 0 || how > C_ARRAY_LENGTH(PL_magic_data)
+ if (how < 0 || (unsigned)how > C_ARRAY_LENGTH(PL_magic_data)
|| ((flags = PL_magic_data[how]),
(vtable_index = flags & PERL_MAGIC_VTABLE_MASK)
> magic_vtable_max))