Skip to content

Commit

Permalink
Remove redundant enum qualifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul committed Apr 24, 2024
1 parent d72d49b commit b8a0cd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/sleipnir/autodiff/Expression.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ struct SLEIPNIR_DLLEXPORT Expression {
} else if (rhs->type == kConstant) {
type = lhs->type;
} else if (lhs->type == kLinear && rhs->type == kLinear) {
type = ExpressionType::kQuadratic;
type = kQuadratic;
} else {
type = ExpressionType::kNonlinear;
type = kNonlinear;
}

return MakeExpressionPtr(
Expand Down Expand Up @@ -267,7 +267,7 @@ struct SLEIPNIR_DLLEXPORT Expression {
if (rhs->type == kConstant) {
type = lhs->type;
} else {
type = ExpressionType::kNonlinear;
type = kNonlinear;
}

return MakeExpressionPtr(
Expand Down

0 comments on commit b8a0cd0

Please sign in to comment.