Skip to content

Commit f158280

Browse files
authored
Merge pull request #3155 from mgreter/bugfix/issue-3148
Fix obvious identical subexpressions in `op_color_number`
2 parents 5fa8135 + f354665 commit f158280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/operators.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ namespace Sass {
247247
{
248248
double rval = rhs.value();
249249

250-
if ((op == Sass_OP::DIV || op == Sass_OP::DIV) && rval == 0) {
250+
if ((op == Sass_OP::DIV || op == Sass_OP::MOD) && rval == 0) {
251251
// comparison of Fixnum with Float failed?
252252
throw Exception::ZeroDivisionError(lhs, rhs);
253253
}

0 commit comments

Comments
 (0)