diff options
author | Tom Tromey <tromey@redhat.com> | 2002-12-03 20:13:43 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-12-03 20:13:43 +0000 |
commit | a50aa799930d7a9890e14b58aebca6ff6d355493 (patch) | |
tree | 5f5ae64b0b79e50356068353f2d65d6521a8b185 /libjava | |
parent | 2cff4a6e82a8ad3b38642fc9ec70cce39526455e (diff) | |
download | gcc-a50aa799930d7a9890e14b58aebca6ff6d355493.zip gcc-a50aa799930d7a9890e14b58aebca6ff6d355493.tar.gz gcc-a50aa799930d7a9890e14b58aebca6ff6d355493.tar.bz2 |
* java/lang/Character.java (forDigit): Formatting fix.
From-SVN: r59781
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 4 | ||||
-rw-r--r-- | libjava/java/lang/Character.java | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index f6a8e5c..0082f65 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,7 @@ +2002-12-03 Tom Tromey <tromey@redhat.com> + + * java/lang/Character.java (forDigit): Formatting fix. + 2002-12-03 Raif Naffah <raif@fl.net.au> * java/security/spec/DSAParameterSpec.java (getP): Return p, not q. diff --git a/libjava/java/lang/Character.java b/libjava/java/lang/Character.java index 9955215..c5da892 100644 --- a/libjava/java/lang/Character.java +++ b/libjava/java/lang/Character.java @@ -2079,8 +2079,8 @@ public final class Character implements Serializable, Comparable */ public static char forDigit(int digit, int radix) { - if (radix < MIN_RADIX || radix > MAX_RADIX || - digit < 0 || digit >= radix) + if (radix < MIN_RADIX || radix > MAX_RADIX + || digit < 0 || digit >= radix) return '\0'; return (char) (digit < 10 ? ('0' + digit) : ('a' - 10 + digit)); } |