diff --git a/AppKit/CPColor.j b/AppKit/CPColor.j index 0be27ab44..3309c2d5c 100644 --- a/AppKit/CPColor.j +++ b/AppKit/CPColor.j @@ -736,7 +736,7 @@ var byteToHex = function(n) if (!n || isNaN(n)) return "00"; - n = ROUND(MIN(255, MAX(0, 256 * n))); + n = FLOOR(MIN(255, MAX(0, 256 * n))); return hexCharacters.charAt((n - n % 16) / 16) + hexCharacters.charAt(n % 16);