Skip to content

Commit

Permalink
Merge pull request #3155 from mgreter/bugfix/issue-3148
Browse files Browse the repository at this point in the history
Fix obvious identical subexpressions in `op_color_number`
  • Loading branch information
mgreter authored May 21, 2021
2 parents 5fa8135 + f354665 commit f158280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ namespace Sass {
{
double rval = rhs.value();

if ((op == Sass_OP::DIV || op == Sass_OP::DIV) && rval == 0) {
if ((op == Sass_OP::DIV || op == Sass_OP::MOD) && rval == 0) {
// comparison of Fixnum with Float failed?
throw Exception::ZeroDivisionError(lhs, rhs);
}
Expand Down

0 comments on commit f158280

Please # to comment.