summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-09-10 08:17:51 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-09-10 08:17:51 -0700
commitcd313eb4878cb9858789ba98728a51205e8c78a9 (patch)
tree56e1d8d84074705394ce0a51fed567d8691d26fd /pp_ctl.c
parent21e89b5f7274f876bff09798ebcc556906fb70d6 (diff)
downloadperl-cd313eb4878cb9858789ba98728a51205e8c78a9.tar.gz
pp_ctl.c:pp_goto: Cast a boolean properly
Otherwise we might end up using AvARRAY on a tied array.
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index bab301e17d..5eebe24ada 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2896,7 +2896,7 @@ PP(pp_goto) /* also pp_dump */
SV **newsp;
I32 gimme;
const SSize_t items = arg ? AvFILL(arg) + 1 : 0;
- const bool m = arg ? SvRMAGICAL(arg) : 0;
+ const bool m = arg ? cBOOL(SvRMAGICAL(arg)) : 0;
SV** mark;
PERL_UNUSED_VAR(newsp);