Explorar o código

Fixed a bug I introduced in 3da6157

Andrew Beams %!s(int64=3) %!d(string=hai) anos
pai
achega
9071a3e940
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;