Ticket #86: matcher-min-weight.2.patch
File matcher-min-weight.2.patch, 922 bytes (added by , 18 years ago) |
---|
-
matcher/multimatch.cc
67 67 Xapian::Enquire::Internal::REL_VAL; 68 68 const Xapian::Enquire::Internal::sort_setting VAL = 69 69 Xapian::Enquire::Internal::VAL; 70 #if 0 // VAL_REL isn't currently used which causes a warning with SGI CC.71 70 const Xapian::Enquire::Internal::sort_setting VAL_REL = 72 71 Xapian::Enquire::Internal::VAL_REL; 73 #endif74 72 75 73 //////////////////////////////////// 76 74 // Initialisation and cleaning up // … … 552 551 pop_heap<vector<Xapian::Internal::MSetItem>::iterator, 553 552 MSetCmp>(items.begin(), items.end(), mcmp); 554 553 items.pop_back(); 555 if (sort_by == REL || sort_by == REL_VAL) {554 if (sort_by == VAL || sort_by == VAL_REL) { 556 555 Xapian::weight tmp = min_item.wt; 557 556 min_item = items.front(); 558 557 min_item.wt = tmp;