diff options
Diffstat (limited to 'libjava/java/awt/Color.java')
-rw-r--r-- | libjava/java/awt/Color.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/java/awt/Color.java b/libjava/java/awt/Color.java index c41117a6e33..c32438521be 100644 --- a/libjava/java/awt/Color.java +++ b/libjava/java/awt/Color.java @@ -506,7 +506,7 @@ public class Color implements Paint, Serializable /** * Returns the RGB value for this color, in the sRGB color space. The blue - * value will be in bits 0-7, green in 8-15, red in 6-23, and alpha value in + * value will be in bits 0-7, green in 8-15, red in 16-23, and alpha value in * 24-31. * * @return the RGB value for this color @@ -772,9 +772,9 @@ public class Color implements Paint, Serializable if (red == max) array[0] = (green - blue) / delta; else if (green == max) - array[0] = 1 / 3 + (blue - red) / delta; + array[0] = 1f / 3 + (blue - red) / delta; else - array[0] = 2 / 3 + (red - green) / delta; + array[0] = 2f / 3 + (red - green) / delta; if (array[0] < 0) array[0]++; } |