[Xapian-tickets] [Xapian] #321: build_numeric_ranges sometimes builds invalid ranges

Xapian nobody at xapian.org
Tue Jan 6 21:42:45 GMT 2009


#321: build_numeric_ranges sometimes builds invalid ranges
-------------------------+--------------------------------------------------
 Reporter:  shane        |        Owner:  olly     
     Type:  defect       |       Status:  new      
 Priority:  normal       |    Milestone:           
Component:  Library API  |      Version:  SVN trunk
 Severity:  normal       |   Resolution:           
 Keywords:               |    Blockedby:           
 Platform:  All          |     Blocking:           
-------------------------+--------------------------------------------------
Changes (by olly):

  * version:  => SVN trunk
  * component:  Other => Library API


Comment:

 I don't think floor -> round is the correct fix here - that will put
 values in the wrong bucket.

 The variable {{{lo}}} should be the lowest value, and:

 {{{
 start = floor(lo / unit) * unit;
 }}}

 And {{{unit}}} should be positive.

 So start should be strictly less than any value being considered...

 If it was x86 I'd suspect excess precision, but you say it's x86-64.

 I've added some assertions to try to narrow down what is going wrong.

-- 
Ticket URL: <http://trac.xapian.org/ticket/321#comment:1>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list