Skip to content

Commit

Permalink
removed unnecessary decode
Browse files Browse the repository at this point in the history
  • Loading branch information
Snafkin547 committed Sep 17, 2024
1 parent 5115254 commit 7c4f3a9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/tests/c_api/test_join_sail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ int main(int argc, char** argv) {
std::vector<std::string> js1_header;
for(size_t i = 0; i<js1_header_toSend.size(); i++){
std::string currHeader = decodeIntToString(js1_header_toSend[i]);
js1_header.push_back(decodeIntToString(currHeader));
js1_header.push_back(currHeader);
}

// Receive P2's header and convert to string
Expand All @@ -256,7 +256,8 @@ int main(int argc, char** argv) {

std::vector<std::string> js2_header;
for(size_t i = 0; i<js2_header_toReceive.size(); i++){
js2_header.push_back(decodeIntToString(js2_header_toReceive[i]));
std::string curr_header = decodeIntToString(js2_header_toReceive[i])
js2_header.push_back(curr_header);
}

// Construct json for the body part
Expand Down Expand Up @@ -435,7 +436,7 @@ int main(int argc, char** argv) {
std::vector<std::string> js1_header;
for(size_t i = 0; i<js1_header_toReceive.size(); i++){
std::string currHeader = decodeIntToString(js1_header_toSend[i]);
js1_header.push_back(decodeIntToString(currHeader));
js1_header.push_back(currHeader);
}

// Send P2's header to P1
Expand Down

0 comments on commit 7c4f3a9

Please sign in to comment.