[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/33206] Long overflow in BigInteger.java
From: |
tromey at gcc dot gnu dot org |
Subject: |
[Bug classpath/33206] Long overflow in BigInteger.java |
Date: |
28 Aug 2007 18:34:08 -0000 |
------- Comment #2 from tromey at gcc dot gnu dot org 2007-08-28 18:34 -------
I think it has to be:
valueOf(2L).pow(b)
because 2L << 0 == 2, not 1. Also, it matches the comment.
That's what I am going to check in.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-08-28 18:34:07
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33206