This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
S_setup_eval_state: save subcoffset, not suboffset
authorDavid Mitchell <davem@iabyn.com>
Mon, 20 May 2013 15:46:59 +0000 (16:46 +0100)
committerDavid Mitchell <davem@iabyn.com>
Sun, 2 Jun 2013 21:28:52 +0000 (22:28 +0100)
commita8ee055f0c6d9737b2b89bbcc1111a97315373be
treef73a2cc9bca609b6fd6736ba85f4fa66bb6a26a0
parentba44c21651ed0b6f2e8d953004fa3dbc25cd970a
S_setup_eval_state: save subcoffset, not suboffset

A typo in this function meant that the same value rex->suboffset was
saved to both eval_state->suboffset and eval_state->subcoffset.

However, I can't think of a test case where this will fail, since each
qr// gets its own set of suboffset vars these days. (and thus I wonder
whether there's even any need to save them when calling (?{}).
regexec.c