summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2016-03-14 19:58:33 +0100
committerYves Orton <demerphq@gmail.com>2016-03-15 00:30:13 +0100
commitd1c49ad5e2e1b02dbc27f05c9ecf435fae326293 (patch)
tree31037e7412e808c629bd07784dc1e1c6b221f490 /regexp.h
parent6aeaca273d90ffa696c08178f9f9ccd259b44760 (diff)
downloadperl-d1c49ad5e2e1b02dbc27f05c9ecf435fae326293.tar.gz
add consistency with other union members
In most cases the curlyx member is the first thing after the yes state member, but eval was reversed. While debugging perl #127705 I switched them to see what would happen, which changed the bug, and ultimately revealed the cause of the problem. So I am going to leave them in the "consistent" order.
Diffstat (limited to 'regexp.h')
-rw-r--r--regexp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/regexp.h b/regexp.h
index 09bb6158a4..65e04268d8 100644
--- a/regexp.h
+++ b/regexp.h
@@ -748,8 +748,8 @@ typedef struct regmatch_state {
struct {
/* this first element must match u.yes */
struct regmatch_state *prev_yes_state;
- struct regmatch_state *prev_eval;
struct regmatch_state *prev_curlyx;
+ struct regmatch_state *prev_eval;
REGEXP *prev_rex;
CHECKPOINT cp; /* remember current savestack indexes */
CHECKPOINT lastcp;