WIP: FloatOptional GCC build fix and more constexpr #1411

Closed
NickGerleman wants to merge 22 commits from NickGerleman-fix-gcc-floatoptional into main
4 changed files with 44 additions and 43 deletions
Showing only changes of commit e39f31468b - Show all commits

View File

@@ -1260,7 +1260,7 @@ static void justifyMainAxis(
case Justify::SpaceBetween: case Justify::SpaceBetween:
if (flexLine.itemsInFlow.size() > 1) { if (flexLine.itemsInFlow.size() > 1) {
betweenMainDim += betweenMainDim +=
yoga::maxOrDefined(flexLine.layout.remainingFreeSpace, 0) / yoga::maxOrDefined(flexLine.layout.remainingFreeSpace, 0.0f) /
static_cast<float>(flexLine.itemsInFlow.size() - 1); static_cast<float>(flexLine.itemsInFlow.size() - 1);
} }
break; break;