Ticket #7903: erase-last-one.diff

File erase-last-one.diff, 472 bytes (added by Yin Qiu <qiuyi.n@…>, 10 years ago)
  • fibonacci_heap.hpp

     
    715715
    716716    void consolidate(void)
    717717    {
    718         if (roots.empty())
     718        if (roots.empty()) {
     719            top_element = NULL;
    719720            return;
     721        }
    720722
    721723        static const size_type max_log2 = sizeof(size_type) * 8;
    722724        boost::array<node_pointer, max_log2> aux;