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:
d0821a6
)
Small fix to a previous patch on magic $<digit> variables.
author
Ævar Arnfjörð Bjarmason
<avar@cpan.org>
Thu, 10 May 2007 02:24:48 +0000
(
02:24
+0000)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Thu, 10 May 2007 08:39:04 +0000
(08:39 +0000)
Subject: [PATCH]
From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Message-ID: <51dd1af80705091924q77c2ca23n30359779b96ab909@mail.gmail.com>
p4raw-id: //depot/perl@31190
mg.c
patch
|
blob
|
blame
|
history
diff --git
a/mg.c
b/mg.c
index
d937c16
..
200da51
100644
(file)
--- a/
mg.c
+++ b/
mg.c
@@
-2242,6
+2242,7
@@
Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
goto setparen;
case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
+ paren = atoi(mg->mg_ptr);
setparen:
if (PL_curpm && (rx = PM_GETRE(PL_curpm))) {
CALLREG_NUMBUF_STORE((REGEXP * const)rx,paren,sv);