summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2006-04-30 12:32:09 +0000
committerDave Mitchell <davem@fdisolutions.com>2006-04-30 12:32:09 +0000
commitb9ea4ed635ce80660161459fbde22a8c65d414db (patch)
tree9650ada0f633c399e7654debfcab3af5d8af0143 /regexec.c
parent73ee8be2712c500c98e5976864ba96726bf311e2 (diff)
downloadperl-b9ea4ed635ce80660161459fbde22a8c65d414db.tar.gz
remove a compiler warning by making HOPBACKc only hop *back*
p4raw-id: //depot/perl@28023
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index c0061012cf..94ad06f58e 100644
--- a/regexec.c
+++ b/regexec.c
@@ -104,7 +104,7 @@
: (U8*)(pos + off)))
#define HOPBACKc(pos, off) ((char*) \
((PL_reg_match_utf8) \
- ? reghopmaybe3((U8*)pos, -off, ((U8*)(off < 0 ? PL_regeol : PL_bostr))) \
+ ? reghopmaybe3((U8*)pos, -off, (U8*)PL_bostr) \
: (pos - off >= PL_bostr) \
? (U8*)(pos - off) \
: (U8*)NULL) \