Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
flexShrinkAdjustment lambda must always return float
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhuy committed Mar 11, 2017
1 parent 0540c86 commit 7b0a073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Private/Layout/ASStackUnpositionedLayout.mm
Expand Up @@ -373,7 +373,7 @@ static inline CGFloat scaledFlexShrinkFactor(const ASStackLayoutSpecItem &item,
});
return [style, scaledFlexShrinkFactorSum, violation, flexFactorSum](const ASStackLayoutSpecItem &item) {
if (scaledFlexShrinkFactorSum == 0.0) {
return 0.0;
return (CGFloat)0.0;
}

const CGFloat scaledFlexShrinkFactorRatio = scaledFlexShrinkFactor(item, style, flexFactorSum) / scaledFlexShrinkFactorSum;
Expand Down

0 comments on commit 7b0a073

Please sign in to comment.