Fix for bsr bug with huge numbers
Lars Hesel Christensen <[email protected]>
| Newsgroups | gmane.comp.lang.erlang.patches |
|---|---|
| Message-ID | <CAGTbP7x0+W0uyQD6XWme1_O1-ADbk5HWD_bx6oguty2HNgCjDw@mail.gmail.com> |
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 [email protected] http://erlang.org/mailman/listinfo/erlang-patches