[Yoga] replace float with YGFloat

This commit is contained in:
vvveiii
2020-08-15 23:55:28 +08:00
parent ac326555b9
commit 730f46bcf1
4 changed files with 24 additions and 24 deletions

View File

@@ -149,11 +149,11 @@
lowercased_name, capitalized_name, capitalized_name, YGEdgeAll)
YGValue YGPointValue(CGFloat value) {
return (YGValue){.value = (float)value, .unit = YGUnitPoint};
return (YGValue){.value = (YGFloat)value, .unit = YGUnitPoint};
}
YGValue YGPercentValue(CGFloat value) {
return (YGValue){.value = (float)value, .unit = YGUnitPercent};
return (YGValue){.value = (YGFloat)value, .unit = YGUnitPercent};
}
static CGFloat YGScaleFactor() {