Ticket #4191: patch_perl_matcher_common.patch

File patch_perl_matcher_common.patch, 807 bytes (added by anonymous, 12 years ago)
  • .hpp

    old new  
    732732   {
    733733      // Have we recursed into subexpression "index"?
    734734      // If index == 0 then check for any recursion at all, otherwise for recursion to -index-1.
    735       int id = -index-1;
    736       if(id >= 10000)
    737          id = re.get_data().get_id(id);
    738       result = recursion_stack_position && ((recursion_stack[recursion_stack_position-1].id == id) || (index == 0));
     735      int idtest = -index-1;
     736      if(idtest >= 10000)
     737         idtest = re.get_data().get_id(idtest);
     738      result = recursion_stack_position && ((recursion_stack[recursion_stack_position-1].id == idtest) || (index == 0));
    739739      pstate = pstate->next.p;
    740740   }
    741741   return result;