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