From 5120bdbac7beaf782998df33f0087c0273a5d6a3 Mon Sep 17 00:00:00 2001 From: Marcel Greter Date: Mon, 19 Mar 2018 19:12:37 +0100 Subject: [PATCH] Fix edge case converting achromatic colors to HSL --- src/fn_colors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fn_colors.cpp b/src/fn_colors.cpp index 642e9d4f4..6bbc97ef6 100644 --- a/src/fn_colors.cpp +++ b/src/fn_colors.cpp @@ -170,7 +170,7 @@ namespace Sass { double s; double l = (max + min) / 2.0; - if (max == min) { + if (NEAR_EQUAL(max, min)) { h = s = 0; // achromatic } else {