[erlang-bugs] [erlang-questions] bug in erlang:size

Steve Davis steven.charles.davis@REDACTED
Sat Aug 4 01:06:29 CEST 2012


3> byte_size(B).
3


On Friday, August 3, 2012 4:12:02 AM UTC-5, Joe Armstrong wrote:
>
> I think this is a bug: 
>
> $erl 
> 1> B = <<1:17>>. 
> <<0,0,1:1>> 
> 2> size(B) 
> 2 
>
>
> B is not a binary or tuple to size(B) should give badarg 
>
> /Joe 
> _______________________________________________ 
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20120803/c6c76cd6/attachment.htm>


More information about the erlang-bugs mailing list