Sfoglia il codice sorgente

Touch up one comment

Ian Goldberg 2 anni fa
parent
commit
4e3af6b482
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      heap.cpp

+ 2 - 1
heap.cpp

@@ -69,7 +69,8 @@ void MinHeap::insert_optimized(MPCTIO tio, yield_t & yield, RegAS val) {
     typename Duoram<RegAS>::Path old_P(HeapArray, tio, yield, num_items);
     const RegXS foundidx = old_P.binary_search(val);
     size_t childindex = num_items;
-    uint64_t height = old_P.size(); // Here height is the number of nodes the path from root to the leaf
+    // height is the number of nodes on the path from root to the leaf
+    uint64_t height = old_P.size();
     RegAS zero;
     HeapArray[childindex] = zero;
     typename Duoram<RegAS>::Path P(HeapArray, tio, yield, num_items);