Skip to content

Commit 2807587

Browse files
mgreterxzyfer
authored andcommitted
Fix edge case converting achromatic colors to HSL
1 parent b0077d6 commit 2807587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ namespace Sass {
467467
double s;
468468
double l = (max + min) / 2.0;
469469

470-
if (max == min) {
470+
if (NEAR_EQUAL(max, min)) {
471471
h = s = 0; // achromatic
472472
}
473473
else {

0 commit comments

Comments
 (0)