infra: prevent warning on windows

"conversion from 'float' to 'int8_t', possible loss of data"
This commit is contained in:
Mira Grudzinska 2024-11-11 13:08:20 +01:00 committed by Hermet Park
parent b394a46cef
commit 80815b269b

View file

@ -281,7 +281,7 @@ void LottieParser::getValue(int8_t& val)
//discard rest //discard rest
while (nextArrayValue()) getInt(); while (nextArrayValue()) getInt();
} else { } else {
val = getFloat(); val = (int8_t)getFloat();
} }
} }