瀏覽代碼

To prevent logtp search from aborting

sshsshy 2 年之前
父節點
當前提交
15938d866a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pir.cpp

+ 1 - 1
pir.cpp

@@ -150,7 +150,7 @@ uint64_t coefficients_per_element(uint32_t logtp, uint64_t ele_size) {
 uint64_t elements_per_ptxt(uint32_t logt, uint64_t N, uint64_t ele_size) {
     uint64_t coeff_per_ele = coefficients_per_element(logt, ele_size);
     uint64_t ele_per_ptxt = N / coeff_per_ele;
-    assert(ele_per_ptxt > 0);
+    //assert(ele_per_ptxt > 0);
     return ele_per_ptxt;
 }