From 2fb0b77f02eecd426779f13941d53228b80d2444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Lind=C3=A9n?= Date: Sat, 20 May 2023 00:35:26 +0200 Subject: [PATCH] Fix MSVC possible loss of data warning (#645) --- src/ftxui/dom/linear_gradient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ftxui/dom/linear_gradient.cpp b/src/ftxui/dom/linear_gradient.cpp index 39046a3..84ab524 100644 --- a/src/ftxui/dom/linear_gradient.cpp +++ b/src/ftxui/dom/linear_gradient.cpp @@ -32,7 +32,7 @@ LinearGradientNormalized Normalize(LinearGradient gradient) { // Fill in the two extent, if not provided. if (!gradient.stops.front().position) { - gradient.stops.front().position = 0; + gradient.stops.front().position = 0.f; } if (!gradient.stops.back().position) { gradient.stops.back().position = 1.f;