aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2013-02-21 15:06:57 +0100
committerLukas Larsson <[email protected]>2013-02-21 15:06:57 +0100
commit9086f8eef1ad0464e32f486c4faba001a99f3235 (patch)
tree864238823d8a38bc2519b1a81e045f9094fa83ea /lib
parentd73cdd8a27cb9bcd7bda1143ecb23ea4b032ee91 (diff)
downloadotp-9086f8eef1ad0464e32f486c4faba001a99f3235.tar.gz
otp-9086f8eef1ad0464e32f486c4faba001a99f3235.tar.bz2
otp-9086f8eef1ad0464e32f486c4faba001a99f3235.zip
bin_to_list can also take a negative len
Diffstat (limited to 'lib')
-rw-r--r--lib/stdlib/src/binary.erl2
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).