Add explicit static casts
@@ -323,13 +323,13 @@ static bool realign_weights_decimated(
if ((error_up < error_base) && (error_up < error_down) && (uqw < 64))
{
uq_weightsf[we_idx] = uqw_up;
- dec_weights_uquant[we_idx] = uqw_up;
+ dec_weights_uquant[we_idx] = static_cast<uint8_t>(uqw_up);
adjustments = true;
}
else if ((error_down < error_base) && (uqw > 0))
{
uq_weightsf[we_idx] = uqw_down;
- dec_weights_uquant[we_idx] = uqw_down;
+ dec_weights_uquant[we_idx] = static_cast<uint8_t>(uqw_down);
adjustments = true;
}
}
