Commit e73dc124 by Aaron Leung

Fixed a bug in the implementation of "comparable".

parent a5973985
...@@ -563,9 +563,15 @@ namespace Sass { ...@@ -563,9 +563,15 @@ namespace Sass {
return F; return F;
} }
} }
else { else if (!n1.is_numeric() && !n2.is_numeric()) {
eval_error("arguments to comparable must be numeric", n1.line_number, n1.file_name); eval_error("arguments to comparable must be numeric", n1.line_number, n1.file_name);
} }
else {
Node F(Node::boolean);
F.line_number = n1.line_number;
F.content.boolean_value = false;
return F;
}
} }
// Boolean Functions /////////////////////////////////////////////////// // Boolean Functions ///////////////////////////////////////////////////
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment