Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
737c87df
Commit
737c87df
authored
Jan 10, 2001
by
Warren Levy
Committed by
Warren Levy
Jan 10, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* java/math/BigDecimal.java (divide): Fixed comment.
From-SVN: r38862
parent
69848904
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
libjava/ChangeLog
+4
-0
libjava/java/math/BigDecimal.java
+1
-1
No files found.
libjava/ChangeLog
View file @
737c87df
2001-01-10 Warren Levy <warrenl@redhat.com>
2001-01-10 Warren Levy <warrenl@redhat.com>
* java/math/BigDecimal.java (divide): Fixed comment.
2001-01-10 Warren Levy <warrenl@redhat.com>
Fix for PR libgcj/1596:
Fix for PR libgcj/1596:
* java/math/BigDecimal.java (divide): Check newScale for validity.
* java/math/BigDecimal.java (divide): Check newScale for validity.
Ensure that BigInteger.pow() is called with a non-negative value.
Ensure that BigInteger.pow() is called with a non-negative value.
...
...
libjava/java/math/BigDecimal.java
View file @
737c87df
...
@@ -146,7 +146,7 @@ public class BigDecimal extends Number implements Comparable {
...
@@ -146,7 +146,7 @@ public class BigDecimal extends Number implements Comparable {
if
(
power
<
0
)
if
(
power
<
0
)
{
{
// Effectively increase the scale of val to avoid an
// Effectively increase the scale of val to avoid an
//
IllegalArgument
Exception for a negative power.
//
Arithmetic
Exception for a negative power.
valIntVal
=
valIntVal
.
multiply
(
BigInteger
.
valueOf
(
10
).
pow
(-
power
));
valIntVal
=
valIntVal
.
multiply
(
BigInteger
.
valueOf
(
10
).
pow
(-
power
));
power
=
0
;
power
=
0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment