[erlang-patches] Fwd: Fix for bsr bug with huge numbers

Henrik Nord henrik@REDACTED
Thu Sep 26 09:04:43 CEST 2013


Your pull request is being handled.
Thank you for your contributions!


On 2013-09-25 21:06, Lars Hesel Christensen wrote:
> As this didn't seem to get through the first time, I try again.
>
> Best regards,
> Lars
>
> ---------- Forwarded message ----------
> From: *Lars Hesel Christensen* <larshesel@REDACTED 
> <mailto:larshesel@REDACTED>>
> Date: 2013/9/24
> Subject: Fix for bsr bug with huge numbers
> To: erlang-patches@REDACTED <mailto:erlang-patches@REDACTED>
>
>
> Thus pull request fixes a bug in the bsr function, which manifests 
> when a huge number is shifted a huge number of bits to the right. It 
> simply returns the number unshifted:
>
> 1> 1183140560213014108063589658350 bsr 
> 146783911423364576743092537299333564210980159306769991919205685720763064069663027716481187399048043939495935. 
>
> 1183140560213014108063589658350
>
> The commit messages contain more information.
>
> The pull request is here:
>
> https://github.com/erlang/otp/pull/86
>
> This bug was brought to my attention by Kresten Krab Thorup.
>
> Best regards,
> Lars Hesel Christensen
>
>
>
> _______________________________________________
> erlang-patches mailing list
> erlang-patches@REDACTED
> http://erlang.org/mailman/listinfo/erlang-patches

-- 
/Henrik Nord Erlang/OTP

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20130926/59b5326b/attachment.htm>


More information about the erlang-patches mailing list