diff options
author | Lukas Larsson <[email protected]> | 2013-02-21 15:06:57 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2013-02-21 15:06:57 +0100 |
commit | 9086f8eef1ad0464e32f486c4faba001a99f3235 (patch) | |
tree | 864238823d8a38bc2519b1a81e045f9094fa83ea | |
parent | d73cdd8a27cb9bcd7bda1143ecb23ea4b032ee91 (diff) | |
download | otp-9086f8eef1ad0464e32f486c4faba001a99f3235.tar.gz otp-9086f8eef1ad0464e32f486c4faba001a99f3235.tar.bz2 otp-9086f8eef1ad0464e32f486c4faba001a99f3235.zip |
bin_to_list can also take a negative len
-rw-r--r-- | lib/stdlib/src/binary.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/binary.erl b/lib/stdlib/src/binary.erl index de18b6cd54..1fb241fd1d 100644 --- a/lib/stdlib/src/binary.erl +++ b/lib/stdlib/src/binary.erl @@ -58,7 +58,7 @@ bin_to_list(_, _) -> -spec bin_to_list(Subject, Pos, Len) -> [byte()] when Subject :: binary(), Pos :: non_neg_integer(), - Len :: non_neg_integer(). + Len :: integer(). bin_to_list(_, _, _) -> erlang:nif_error(undef). |