Skip to content
Snippets Groups Projects
Unverified Commit f1303626 authored by Robin Lindén's avatar Robin Lindén Committed by GitHub
Browse files

Fix MSVC possible loss of data warning (#645)

parent b1c53bcd
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ LinearGradientNormalized Normalize(LinearGradient gradient) { ...@@ -32,7 +32,7 @@ LinearGradientNormalized Normalize(LinearGradient gradient) {
// Fill in the two extent, if not provided. // Fill in the two extent, if not provided.
if (!gradient.stops.front().position) { if (!gradient.stops.front().position) {
gradient.stops.front().position = 0; gradient.stops.front().position = 0.f;
} }
if (!gradient.stops.back().position) { if (!gradient.stops.back().position) {
gradient.stops.back().position = 1.f; gradient.stops.back().position = 1.f;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment