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

Commit 7a238d1

Browse files
author
Aaron Leung
committed
Couple of fixes.
1 parent 2e2d97a commit 7a238d1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

eval_apply.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ namespace Sass {
107107
// }
108108

109109
// expand the body with the newly expanded selector as the prefix
110-
cerr << "ORIGINAL SELECTOR:\t" << expr[2].to_string() << endl;
111-
cerr << "NORMALIZED SELECTOR:\t" << normalize_selector(expr[2], new_Node).to_string() << endl << endl;
110+
// cerr << "ORIGINAL SELECTOR:\t" << expr[2].to_string() << endl;
111+
// cerr << "NORMALIZED SELECTOR:\t" << normalize_selector(expr[2], new_Node).to_string() << endl << endl;
112112
expand(expr[1], expr.back(), env, f_env, new_Node, ctx);
113113
} break;
114114

node.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ namespace Sass {
6161

6262
string Node::unquote() const
6363
{
64-
Type t = type();
6564
switch (type())
6665
{
6766
case string_constant:
@@ -196,7 +195,8 @@ namespace Sass {
196195
}
197196

198197
// comparing identifiers and strings (treat them as comparable)
199-
else if (is_string() && rhs.is_string()) {
198+
else if ((is_string() && rhs.is_string()) ||
199+
(lhs_type == value && rhs_type == value)) {
200200
return unquote() < rhs.unquote();
201201
}
202202

@@ -225,7 +225,7 @@ namespace Sass {
225225
case simple_selector_sequence:
226226
case attribute_selector:
227227
case functional_pseudo:
228-
case pseudo_not: {
228+
case pseudo_negation: {
229229
return lexicographical_compare(begin(), end(), rhs.begin(), rhs.end());
230230
} break;
231231

0 commit comments

Comments
 (0)