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
d98729aa
Commit
d98729aa
authored
Mar 09, 2000
by
Warren Levy
Committed by
Warren Levy
Mar 09, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* java/math/BigInteger.java(signum): Handle zero properly.
From-SVN: r32441
parent
299b83b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
+7
-1
libjava/ChangeLog
+4
-0
libjava/java/math/BigInteger.java
+3
-1
No files found.
libjava/ChangeLog
View file @
d98729aa
2000-03-08 Warren Levy <warrenl@cygnus.com>
* java/math/BigInteger.java(signum): Handle zero properly.
2000-03-07 Tom Tromey <tromey@cygnus.com>
* All files: Updated copyright information.
...
...
libjava/java/math/BigInteger.java
View file @
d98729aa
...
...
@@ -285,7 +285,9 @@ public class BigInteger extends Number implements Comparable
public
int
signum
()
{
int
top
=
words
==
null
?
ival
:
words
[
ival
-
1
];
return
top
>
0
?
1
:
top
<
0
?
-
1
:
0
;
if
(
top
==
0
&&
words
==
null
)
return
0
;
return
top
<
0
?
-
1
:
1
;
}
private
static
int
compareTo
(
BigInteger
x
,
BigInteger
y
)
...
...
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