<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="Wj3C7c"><br>
>> I know that lately computer industry decided to switch from 6-bit to 8-bit<br>
>> bytes :), which when unsigned can hold values in range 0..255. But this<br>
>> wasn't my question. I asked, why Erlang compiler didn't return error, when<br>
>> you give it input like <<256>>. I think it's a bug.<br>
>><br>
>> Zvi<br></div></div></blockquote><div><br>I hope I am not the only person but I think this is the exact right behavior. If you over flow a binary digit it rolls over, in many cases this an intended behavior. Now why an int isn't 4 bytes instead of 1 that does seem a bit wrong, but not to shocking.<br>
<br>Mog<br></div></div>