From e39f31468b96df831727a13ac1c3a26a6d4861b5 Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Tue, 3 Oct 2023 20:21:13 -0400 Subject: [PATCH] 0.0f --- yoga/algorithm/CalculateLayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yoga/algorithm/CalculateLayout.cpp b/yoga/algorithm/CalculateLayout.cpp index ec35ddf8..cf86262e 100644 --- a/yoga/algorithm/CalculateLayout.cpp +++ b/yoga/algorithm/CalculateLayout.cpp @@ -1260,7 +1260,7 @@ static void justifyMainAxis( case Justify::SpaceBetween: if (flexLine.itemsInFlow.size() > 1) { betweenMainDim += - yoga::maxOrDefined(flexLine.layout.remainingFreeSpace, 0) / + yoga::maxOrDefined(flexLine.layout.remainingFreeSpace, 0.0f) / static_cast(flexLine.itemsInFlow.size() - 1); } break;