From 9086f8eef1ad0464e32f486c4faba001a99f3235 Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Thu, 21 Feb 2013 15:06:57 +0100 Subject: bin_to_list can also take a negative len --- lib/stdlib/src/binary.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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). -- cgit v1.2.3