Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FloatOptional GCC build fix and more constexpr #1411

Closed
wants to merge 22 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update FloatOptional.h
  • Loading branch information
NickGerleman committed Oct 4, 2023
commit 34d6ce53693c18564e66df9768c48d13f6ef05f0
6 changes: 3 additions & 3 deletions yoga/numeric/FloatOptional.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ constexpr bool operator<=(FloatOptional lhs, FloatOptional rhs) {
return lhs < rhs || lhs == rhs;
}

constexpr FloatOptional maxOrDefined(FloatOptional op1, FloatOptional op2) {
return FloatOptional{yoga::maxOrDefined(op1.unwrap(), op2.unwrap())};
constexpr FloatOptional maxOrDefined(FloatOptional a, FloatOptional b) {
return FloatOptional{yoga::maxOrDefined(a.unwrap(), b.unwrap())};
}

constexpr bool inexactEquals(const FloatOptional a, const FloatOptional b) {
constexpr bool inexactEquals(FloatOptional a, FloatOptional b) {
return yoga::inexactEquals(a.unwrap(), b.unwrap());
}

Expand Down
Loading