projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21e89b5
)
pp_ctl.c:pp_goto: Cast a boolean properly
author
Father Chrysostomos
<sprout@cpan.org>
Tue, 10 Sep 2013 15:17:51 +0000
(08:17 -0700)
committer
Father Chrysostomos
<sprout@cpan.org>
Tue, 10 Sep 2013 15:17:51 +0000
(08:17 -0700)
Otherwise we might end up using AvARRAY on a tied array.
pp_ctl.c
patch
|
blob
|
history
diff --git
a/pp_ctl.c
b/pp_ctl.c
index
bab301e
..
5eebe24
100644
(file)
--- 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);