mirror of git://gcc.gnu.org/git/gcc.git
re PR java/31842 (r124338 causes java Divide_1 and pr6388 to fail)
PR java/31842 * java/lang/natString.cc (_Jv_FormatInt): Avoid undefined signed overflow. From-SVN: r124530
This commit is contained in:
parent
8df966ac78
commit
decc7c8a1c
|
|
@ -1,3 +1,9 @@
|
||||||
|
2007-05-07 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
|
PR java/31842
|
||||||
|
* java/lang/natString.cc (_Jv_FormatInt): Avoid undefined signed
|
||||||
|
overflow.
|
||||||
|
|
||||||
2007-05-07 Keith Seitz <keiths@redhat.com>
|
2007-05-07 Keith Seitz <keiths@redhat.com>
|
||||||
|
|
||||||
* classpath/lib/gnu/classpath/jdwp/Jdwp.class: Regenerate.
|
* classpath/lib/gnu/classpath/jdwp/Jdwp.class: Regenerate.
|
||||||
|
|
|
||||||
|
|
@ -371,11 +371,11 @@ _Jv_FormatInt (jchar* bufend, jint num)
|
||||||
if (num < 0)
|
if (num < 0)
|
||||||
{
|
{
|
||||||
isNeg = true;
|
isNeg = true;
|
||||||
|
if (num != (jint) -2147483648U)
|
||||||
num = -(num);
|
num = -(num);
|
||||||
if (num < 0)
|
else
|
||||||
{
|
{
|
||||||
// Must be MIN_VALUE, so handle this special case.
|
// Handle special case of MIN_VALUE.
|
||||||
// FIXME use 'unsigned jint' for num.
|
|
||||||
*--ptr = '8';
|
*--ptr = '8';
|
||||||
num = 214748364;
|
num = 214748364;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue