This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac372eb
)
Tweak to Storable to make dclone.t pass on 5.005_03.
author
Nicholas Clark
<nick@ccl4.org>
Thu, 15 Mar 2007 11:35:26 +0000
(11:35 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Thu, 15 Mar 2007 11:35:26 +0000
(11:35 +0000)
p4raw-id: //depot/perl@30593
ext/Storable/Storable.xs
patch
|
blob
|
blame
|
history
diff --git
a/ext/Storable/Storable.xs
b/ext/Storable/Storable.xs
index
77ee1b7
..
4f0a0e8
100644
(file)
--- a/
ext/Storable/Storable.xs
+++ b/
ext/Storable/Storable.xs
@@
-6291,7
+6291,11
@@
static SV *dclone(pTHX_ SV *sv)
* Tied elements seem to need special handling.
*/
- if (SvTYPE(sv) == SVt_PVLV && SvRMAGICAL(sv) && mg_find(sv, 'p')) {
+ if ((SvTYPE(sv) == SVt_PVLV
+#if PERL_VERSION < 6
+ || SvTYPE(sv) == SVt_PVMG
+#endif
+ ) && SvRMAGICAL(sv) && mg_find(sv, 'p')) {
mg_get(sv);
}