We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97e1a63 commit 03bf7f8Copy full SHA for 03bf7f8
Sources/YogaKit/YGLayout.mm
@@ -116,12 +116,12 @@ - (void)set##objc_capitalized_name:(YGValue)objc_lowercased_name
116
117
YGValue YGPointValue(CGFloat value)
118
{
119
- return (YGValue) { .value = (YGUnit) value, .unit = (YGUnit) YGUnitPoint };
+ return (YGValue) { .value = (float) value, .unit = (YGUnit) YGUnitPoint };
120
}
121
122
YGValue YGPercentValue(CGFloat value)
123
124
- return (YGValue) { .value = (YGUnit) value, .unit = YGUnitPercent };
+ return (YGValue) { .value = (float) value, .unit = YGUnitPercent };
125
126
127
static YGConfigRef globalConfig;
0 commit comments