Просмотр исходного кода

Output the right thing if the heap property fails to verify

Ian Goldberg 7 месяцев назад
Родитель
Сommit
37389169ef
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      heap.cpp

+ 1 - 1
heap.cpp

@@ -237,7 +237,7 @@ void MinHeap::verify_heap_property(MPCTIO tio, yield_t & yield) {
         if (heapreconstruction[j/2].share() > heapreconstruction[j].share()) {
             std::cout << "heap property failure\n\n";
             std::cout << "j = " << j << std::endl;
-            std::cout << heapreconstruction[j] << std::endl;
+            std::cout << heapreconstruction[j].share() << std::endl;
             std::cout << "j/2 = " << j/2 << std::endl;
             std::cout << heapreconstruction[j/2].share() << std::endl;
         }