From a52bf00577b812679b96c22d797f306c9f9f6dc3 Mon Sep 17 00:00:00 2001 From: xzyfer Date: Fri, 26 Dec 2014 18:55:46 +1100 Subject: [PATCH] Hydrate division operands when it makes sense --- eval.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eval.cpp b/eval.cpp index 4fb54d3013..ffcd9515b4 100644 --- a/eval.cpp +++ b/eval.cpp @@ -326,6 +326,8 @@ namespace Sass { Binary_Expression::Type op_type = b->type(); // don't eval delayed expressions (the '/' when used as a separator) if (op_type == Binary_Expression::DIV && b->is_delayed()) return b; + // if one of the operands is a '/' then make sure it's evaluated + if (typeid(*b->left()) == typeid(Binary_Expression)) b->left()->is_delayed(false); // the logical connectives need to short-circuit Expression* lhs = b->left()->perform(this); switch (op_type) {