aboutsummaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regexec.c b/regexec.c
index e8131e2..d047929 100644
--- a/regexec.c
+++ b/regexec.c
@@ -158,7 +158,7 @@ static struct sset *pickss(struct vars *, struct dfa *, chr *, chr *);
static inline chr *
nextchr(struct vars *v, chr *s)
{
- if (v->eflags & REG_RAW) {
+ if (v->g->cflags & REG_RAW) {
return s+1;
}
@@ -180,7 +180,7 @@ nextchr(struct vars *v, chr *s)
static inline chr *
prevchr(struct vars *v, chr *s)
{
- if (v->eflags & REG_RAW) {
+ if (v->g->cflags & REG_RAW) {
return s-1;
}
@@ -194,7 +194,7 @@ prevchr(struct vars *v, chr *s)
static inline pchr
getchr(struct vars *v, const chr *s, const chr *end)
{
- if (v->eflags & REG_RAW) {
+ if (v->g->cflags & REG_RAW) {
return *s;
}