Fix float type mismatch on endOfLineIndex and inside rounding

Summary:
This PR fixes a type mismatch on `endOfLineIndex` where it should be of type `uint32_t` while it is of type `float`

Additonally it fixes some `double` casting in the rounding methods.
Closes https://github.com/facebook/yoga/pull/745

Differential Revision: D7494519

Pulled By: emilsjolander

fbshipit-source-id: 30a86574ce163458a6888f61a902d0640c1874fb
This commit is contained in:
Lukas Wöhrl
2018-04-04 06:42:36 -07:00
committed by Facebook Github Bot
parent 4b760fa9bc
commit cb6e76973d
2 changed files with 4 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ struct YGCollectFlexItemsRowValues {
float sizeConsumedOnCurrentLine;
float totalFlexGrowFactors;
float totalFlexShrinkScaledFactors;
float endOfLineIndex;
uint32_t endOfLineIndex;
std::vector<YGNodeRef> relativeChildren;
float remainingFreeSpace;
// The size of the mainDim for the row after considering size, padding, margin