From d382603eb72fb270049f80823bbb6ad483f2c94a Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Fri, 5 Apr 2019 02:41:17 +0100 Subject: [PATCH] Fix invalid `operator<` for `Selector_List` (#2858) Fixes #2819 --- src/ast_sel_cmp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ast_sel_cmp.cpp b/src/ast_sel_cmp.cpp index e6bb1b799..fe1357991 100644 --- a/src/ast_sel_cmp.cpp +++ b/src/ast_sel_cmp.cpp @@ -144,6 +144,7 @@ namespace Sass { if (length() < l) l = length(); for (size_t i = 0; i < l; i ++) { if (*at(i) < *rhs.at(i)) return true; + if (*at(i) != *rhs.at(i)) return false; } return false; }