mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-22 18:59:59 +08:00
Fix MSVC possible loss of data warning (#645)
This commit is contained in:
parent
b1c53bcd15
commit
f1303626f5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user