Fix rounding error using double instead of float

Summary: Changelog: [Internal] [Yoga] Use double instead of float during rounding process to prevent loss of precision.

Reviewed By: mdvacca

Differential Revision: D21227565

fbshipit-source-id: 380b57535a356624cda8dc2017871a4ef3c882d1
This commit is contained in:
Sidharth Guglani
2020-04-27 14:38:51 -07:00
committed by Facebook GitHub Bot
parent 884f147742
commit 83b27417ae
2 changed files with 15 additions and 15 deletions

View File

@@ -352,8 +352,8 @@ WIN_EXPORT void YGConfigSetContext(YGConfigRef config, void* context);
WIN_EXPORT void* YGConfigGetContext(YGConfigRef config);
WIN_EXPORT float YGRoundValueToPixelGrid(
float value,
float pointScaleFactor,
double value,
double pointScaleFactor,
bool forceCeil,
bool forceFloor);