From 956df20c64880acfc644aeb4db8231f8d7b8df2c Mon Sep 17 00:00:00 2001 From: Lukas Woehrl Date: Thu, 5 Jan 2017 04:54:12 -0800 Subject: [PATCH] Use float instead of double for test values Summary: Use explicit float values to remove warning. Closes https://github.com/facebook/yoga/pull/318 Reviewed By: gkassabli Differential Revision: D4383687 Pulled By: emilsjolander fbshipit-source-id: a820bf829f74a7bdaefc39e783d03b42e27d0b3b --- tests/YGRoundingMeasureFuncTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/YGRoundingMeasureFuncTest.cpp b/tests/YGRoundingMeasureFuncTest.cpp index 6bbee0e3..9206c4a8 100644 --- a/tests/YGRoundingMeasureFuncTest.cpp +++ b/tests/YGRoundingMeasureFuncTest.cpp @@ -17,8 +17,8 @@ static YGSize _measureFloor(YGNodeRef node, YGMeasureMode heightMode) { return YGSize{ - width = 10.2, - height = 10.2, + width = 10.2f, + height = 10.2f, }; }