about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/regex/regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex/regexec.c b/src/regex/regexec.c
index 0c3d2834..f7aef506 100644
--- a/src/regex/regexec.c
+++ b/src/regex/regexec.c
@@ -917,7 +917,7 @@ tre_tnfa_run_backtrack(const tre_tnfa_t *tnfa, const void *string,
 	  if (stack->prev)
 	    {
 	      DPRINT(("	 backtracking\n"));
-	      if (stack->item.state->assertions && ASSERT_BACKREF)
+	      if (stack->item.state->assertions & ASSERT_BACKREF)
 		{
 		  DPRINT(("  states_seen[%d] = 0\n",
 			  stack->item.state_id));