Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 5120bdb

Browse files
committed
Fix edge case converting achromatic colors to HSL
1 parent 87565ec commit 5120bdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fn_colors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ namespace Sass {
170170
double s;
171171
double l = (max + min) / 2.0;
172172

173-
if (max == min) {
173+
if (NEAR_EQUAL(max, min)) {
174174
h = s = 0; // achromatic
175175
}
176176
else {

0 commit comments

Comments
 (0)