Commit a50aa799 by Tom Tromey Committed by Tom Tromey

* java/lang/Character.java (forDigit): Formatting fix.

From-SVN: r59781
parent 2cff4a6e
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.
......
......@@ -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));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment