Displaying 1 result from an estimated 1 matches for "pq_push".
Did you mean:
  nr_push
  
2007 Jul 30
0
Ferret crashing ruby while highlighting
...}
                while (e_end < mv->size && (matches[e_end].end_offset
                                             <= start_offset +
excerpt_len)) {
                    running_score += matches[e_end].score;
                    e_end++;
                }
                pq_push(excerpt_pq,
                        excerpt_new(e_start, e_end - 1, running_score));
                /* - 0.1 so that earlier matches take priority */
                running_score -= matches[e_start].score;
            }
 
 
e_end is never being incremented beyond 0, so e_end-1 is stored as...