Skip to content

Commit

Permalink
Removed comment code
Browse files Browse the repository at this point in the history
After the fix in 8629cad, this code has
now the expected behaviour.
  • Loading branch information
fdmanana committed Mar 26, 2011
1 parent 8629cad commit b84e7b5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions c_src/snappy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,11 @@ extern "C" {
input.size,
reinterpret_cast<char *>(retBin.data));

(void) valid;
// For some odd reason, it always returns false. Check with snappy's author.
// if (!valid) {
// return enif_make_tuple(env, 2,
// enif_make_atom(env, "error"),
// enif_make_atom(env, "corrupted_data"));
// }
if (!valid) {
return enif_make_tuple(env, 2,
enif_make_atom(env, "error"),
enif_make_atom(env, "corrupted_data"));
}

return enif_make_tuple(env, 2,
enif_make_atom(env, "ok"),
Expand Down

0 comments on commit b84e7b5

Please sign in to comment.