Sfoglia il codice sorgente

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 anni fa
parent
commit
97d8269aec
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      c_src/encoder.c

+ 1
- 1
c_src/encoder.c Vedi File

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

Caricamento…
Annulla
Salva