From 2807587c2f255a51ba999ad0ddfbd4eedcc0f86e 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/functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions.cpp b/src/functions.cpp index 9b118d53a..c9999fc3a 100644 --- a/src/functions.cpp +++ b/src/functions.cpp @@ -467,7 +467,7 @@ namespace Sass { double s; double l = (max + min) / 2.0; - if (max == min) { + if (NEAR_EQUAL(max, min)) { h = s = 0; // achromatic } else {