Browse Source

Fixed a bug I introduced in 3da6157

Andrew Beams 3 years ago
parent
commit
9071a3e940
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pir_client.cpp

+ 1 - 1
pir_client.cpp

@@ -40,7 +40,7 @@ PirQuery PIRClient::generate_query(uint64_t desiredIndex) {
         
         for (uint32_t j =0; j < num_ptxts; j++){
             pt.set_zero();
-            if (indices_[i] > N*j && indices_[i] < N*(j+1)){
+            if (indices_[i] >= N*j && indices_[i] <= N*(j+1)){
                 uint64_t real_index = indices_[i] - N*j; 
                 uint64_t n_i = pir_params_.nvec[i];
                 uint64_t total = N;