Bläddra i källkod

Touch up one comment

Ian Goldberg 2 år sedan
förälder
incheckning
4e3af6b482
1 ändrade filer med 2 tillägg och 1 borttagningar
  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);