Skip to content
Permalink
Browse files
Removed comment code
After the fix in 8629cad, this code has
now the expected behaviour.
  • Loading branch information
fdmanana committed Mar 26, 2011
1 parent 8629cad commit b84e7b532c8afe34ed846c119f7217ca35c7c268
Showing 1 changed file with 5 additions and 7 deletions.
@@ -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"),

0 comments on commit b84e7b5

Please sign in to comment.