Skip to content

Commit d382603

Browse files
glebmxzyfer
authored andcommitted
Fix invalid operator< for Selector_List (#2858)
Fixes #2819
1 parent 69ae7ef commit d382603

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ast_sel_cmp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ namespace Sass {
144144
if (length() < l) l = length();
145145
for (size_t i = 0; i < l; i ++) {
146146
if (*at(i) < *rhs.at(i)) return true;
147+
if (*at(i) != *rhs.at(i)) return false;
147148
}
148149
return false;
149150
}

0 commit comments

Comments
 (0)