Browse Source

Have the AVL constructor default to optimized = true

Ian Goldberg 5 months ago
parent
commit
3bf904d7d4
2 changed files with 2 additions and 2 deletions
  1. 1 1
      avl.cpp
  2. 1 1
      avl.hpp

+ 1 - 1
avl.cpp

@@ -1878,7 +1878,7 @@ void avl_tests(MPCIO &mpcio,
     run_coroutines(tio, [&tio, depth, items] (yield_t &yield) {
         size_t size = size_t(1)<<depth;
         bool player0 = tio.player()==0;
-        AVL tree(tio.player(), size, true);
+        AVL tree(tio.player(), size);
 
         // (T1) : Test 1 : L rotation (root modified)
         /*

+ 1 - 1
avl.hpp

@@ -182,7 +182,7 @@ class AVL {
         value_t node, value_t min_key, value_t max_key);
 
   public:
-    AVL(int num_players, size_t size, bool opt_flag) :
+    AVL(int num_players, size_t size, bool opt_flag = true) :
             oram(num_players, size), OPTIMIZED(opt_flag) {
         this->MAX_SIZE = size;
         MAX_DEPTH = 0;