Skip to content

Commit

Permalink
Missing braces
Browse files Browse the repository at this point in the history
  • Loading branch information
mellis13 committed Nov 1, 2024
1 parent 722b1c8 commit aae3968
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/cpp/client_test_put_get_bytes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ int main(int argc, char* argv[]) {
size_t output_n_bytes = 0;
client.unpack_bytes(key, output_bytes.data(), n_bytes, output_n_bytes);

if (output_n_bytes != n_bytes)
if (output_n_bytes != n_bytes) {
std::cout<<"Output byte size "<<output_n_bytes<<" does not match."<<std::endl;
throw std::exception();
}

for(int i = 0; i < n_bytes; i++) {
if (output_bytes[i] != input_bytes[i]) {
Expand Down

0 comments on commit aae3968

Please sign in to comment.