diff --git a/tests/YGFlexWrapRoundingTest.cpp b/tests/YGFlexWrapRoundingTest.cpp index 4a306f8a63..ed8644452c 100644 --- a/tests/YGFlexWrapRoundingTest.cpp +++ b/tests/YGFlexWrapRoundingTest.cpp @@ -18,7 +18,7 @@ YGSize measureFractionalWidth( YGMeasureMode /*widthMode*/, float /*height*/, YGMeasureMode /*heightMode*/) { - const float* measuredWidth = + const auto* measuredWidth = static_cast(YGNodeGetContext(const_cast(node))); return YGSize{*measuredWidth, 20.0f}; }