diff options
author | Björn-Egil Dahlberg <egil@erlang.org> | 2011-11-07 15:59:16 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <egil@erlang.org> | 2011-11-07 16:07:01 +0100 |
commit | 02d6b0770538dcb2f0be1755b6db2139498a47b6 (patch) | |
tree | eed9812a2671c2022b09760f72beeb6446bf8899 /erts/emulator/beam | |
parent | 7566b2afc2a3bd509ea0bf744e87770643ce3477 (diff) | |
download | otp-02d6b0770538dcb2f0be1755b6db2139498a47b6.tar.gz otp-02d6b0770538dcb2f0be1755b6db2139498a47b6.tar.bz2 otp-02d6b0770538dcb2f0be1755b6db2139498a47b6.zip |
erts: Remove debug variable in list_to_binary
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/binary.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/erts/emulator/beam/binary.c b/erts/emulator/beam/binary.c index 1fb39c6c67..29461877c5 100644 --- a/erts/emulator/beam/binary.c +++ b/erts/emulator/beam/binary.c @@ -356,8 +356,10 @@ BIF_RETTYPE erts_list_to_binary_bif(Process *p, Eterm arg) { Eterm bin; Uint size; - int offset; byte* bytes; +#ifdef DEBUG + int offset; +#endif if (is_nil(arg)) { BIF_RET(new_binary(p,(byte*)"",0)); @@ -372,7 +374,11 @@ BIF_RETTYPE erts_list_to_binary_bif(Process *p, Eterm arg) } bin = new_binary(p, (byte *)NULL, size); bytes = binary_bytes(bin); - offset = io_list_to_buf(arg, (char*) bytes, size); +#ifdef DEBUG + offset = +#endif + io_list_to_buf(arg, (char*) bytes, size); + ASSERT(offset == 0); BIF_RET(bin); |