Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
SRE_OP_ASSERT_NOT
  • Loading branch information
wjssz committed Mar 12, 2019
commit 3c31ecc95277383160c03d5c671c1a670dc1b2d8
9 changes: 3 additions & 6 deletions Modules/sre_lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -1327,18 +1327,15 @@ SRE(match)(SRE_STATE* state, SRE_CODE* pattern, int toplevel)
if (ctx->ptr - (SRE_CHAR *)state->beginning >= (Py_ssize_t)ctx->pattern[1]) {
state->ptr = ctx->ptr - ctx->pattern[1];
LASTMARK_SAVE();
if (state->repeat)
MARK_PUSH(ctx->lastmark);
MARK_PUSH(ctx->lastmark);

DO_JUMP0(JUMP_ASSERT_NOT, jump_assert_not, ctx->pattern+2);
if (ret) {
if (state->repeat)
MARK_POP_DISCARD(ctx->lastmark);
MARK_POP_DISCARD(ctx->lastmark);
RETURN_ON_ERROR(ret);
RETURN_FAILURE;
}
if (state->repeat)
MARK_POP(ctx->lastmark);
MARK_POP(ctx->lastmark);
LASTMARK_RESTORE();
}
ctx->pattern += ctx->pattern[0];
Expand Down