aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2013-02-21 15:07:20 +0100
committerLukas Larsson <[email protected]>2013-02-21 15:07:20 +0100
commit348178af5a16329b2030604fa79bd3f9c1048ff0 (patch)
tree03ad5b66222cd20dd8c66e15fa0191681b8c8697 /lib/stdlib
parent101a67bfafb4db55ae8ed761cf33c09c9ead4797 (diff)
parent9086f8eef1ad0464e32f486c4faba001a99f3235 (diff)
downloadotp-348178af5a16329b2030604fa79bd3f9c1048ff0.tar.gz
otp-348178af5a16329b2030604fa79bd3f9c1048ff0.tar.bz2
otp-348178af5a16329b2030604fa79bd3f9c1048ff0.zip
Merge branch 'lukas/stdlib/binary_typespec'
* lukas/stdlib/binary_typespec: bin_to_list can also take a negative len
Diffstat (limited to 'lib/stdlib')
-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).