Browse Source

Remove stray while loop

Apparently I missed this when refactoring a do/while loop into a
standard while loop. It was a harmless extra invocation to check if the
stack was empty.
pull/32/merge
Paul J. Davis 12 years ago
parent
commit
97d8269aec
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      c_src/encoder.c

+ 1
- 1
c_src/encoder.c View File

@ -705,7 +705,7 @@ encode(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
goto done; goto done;
} }
} }
} while(!enif_is_empty_list(env, stack));
}
if(!enc_done(e, &item)) { if(!enc_done(e, &item)) {
ret = enc_error(e, "internal_error"); ret = enc_error(e, "internal_error");

Loading…
Cancel
Save