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 931d0748bb
commit a0f1c2d99d

View file

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