Ticket #86: matcher-min-weight.2.patch

File matcher-min-weight.2.patch, 922 bytes (added by Olly Betts, 18 years ago)

Patch to fix incorrect part of fix for bug#110 (v2)

  • matcher/multimatch.cc

     
    6767        Xapian::Enquire::Internal::REL_VAL;
    6868const Xapian::Enquire::Internal::sort_setting VAL =
    6969        Xapian::Enquire::Internal::VAL;
    70 #if 0 // VAL_REL isn't currently used which causes a warning with SGI CC.
    7170const Xapian::Enquire::Internal::sort_setting VAL_REL =
    7271        Xapian::Enquire::Internal::VAL_REL;
    73 #endif
    7472
    7573////////////////////////////////////
    7674// Initialisation and cleaning up //
     
    552551                pop_heap<vector<Xapian::Internal::MSetItem>::iterator,
    553552                         MSetCmp>(items.begin(), items.end(), mcmp);
    554553                items.pop_back();
    555                 if (sort_by == REL || sort_by == REL_VAL) {
     554                if (sort_by == VAL || sort_by == VAL_REL) {
    556555                    Xapian::weight tmp = min_item.wt;
    557556                    min_item = items.front();
    558557                    min_item.wt = tmp;