summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-03-13 15:20:50 -0600
committerKarl Williamson <khw@cpan.org>2019-03-13 15:42:49 -0600
commit2892a27e931e4ba534dd20dc9c94542eda19afbf (patch)
tree44a99c468f857dd4cd5b9764b89066be15294e13 /regexec.c
parent1f25ceb1dbba05ad62ee0a371c12863528fc4a9f (diff)
downloadperl-2892a27e931e4ba534dd20dc9c94542eda19afbf.tar.gz
regexec.c: Add assertion
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 e50145d449..93d9afa3ac 100644
--- a/regexec.c
+++ b/regexec.c
@@ -155,7 +155,7 @@ static const char* const non_utf8_target_but_utf8_required
#define NEXTCHR_EOS -10 /* nextchr has fallen off the end */
#define NEXTCHR_IS_EOS (nextchr < 0)
-#define SET_nextchr \
+#define SET_nextchr __ASSERT_(locinput <= reginfo->strend) \
nextchr = ((locinput < reginfo->strend) ? UCHARAT(locinput) : NEXTCHR_EOS)
#define SET_locinput(p) \