Fix const declaration mismatch and double/float mix

Summary:
This PR fixes a declaration mismatch for `YGNodeCanUseCachedMeasurement` where the last argument is declared non `const` in `.h` and `const` in `.c`.

Additionally it uses explicit `float` for fraction calculation do avoid usage of `double` assignment.
Closes https://github.com/facebook/yoga/pull/607

Differential Revision: D5677931

Pulled By: emilsjolander

fbshipit-source-id: 502da957089e4439ed956987ff8dec10bd033ba3
This commit is contained in:
Lukas Wöhrl
2017-08-23 02:40:04 -07:00
committed by Facebook Github Bot
parent c79c5e3c9d
commit 4185a44393
2 changed files with 3 additions and 3 deletions

View File

@@ -112,7 +112,7 @@ WIN_EXPORT bool YGNodeCanUseCachedMeasurement(const YGMeasureMode widthMode,
const float lastComputedHeight,
const float marginRow,
const float marginColumn,
YGConfigRef config);
const YGConfigRef config);
WIN_EXPORT void YGNodeCopyStyle(const YGNodeRef dstNode, const YGNodeRef srcNode);