Skip to content

Commit

Permalink
Fix obvious identical subexpressions in op_color_number
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed May 20, 2021
1 parent c3c1c0e commit f354665
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 f354665

Please # to comment.