Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed comment code

After the fix in 8629cad, this code has
now the expected behaviour.
  • Loading branch information...
commit b84e7b532c8afe34ed846c119f7217ca35c7c268 1 parent 8629cad
@fdmanana authored
Showing with 5 additions and 7 deletions.
  1. +5 −7 c_src/snappy.cc
View
12 c_src/snappy.cc
@@ -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"),
Please sign in to comment.
Something went wrong with that request. Please try again.