mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
audio_core/codec: Resolve truncation warnings within DecodeADPCM
The assignments here were performing an implicit truncation from int to s16. Make it explicit that this is desired behavior.
This commit is contained in:
parent
c07987dfab
commit
a12f4efa2f
1 changed files with 2 additions and 2 deletions
|
@ -68,8 +68,8 @@ std::vector<s16> DecodeADPCM(const u8* const data, std::size_t size, const ADPCM
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
state.yn1 = yn1;
|
state.yn1 = static_cast<s16>(yn1);
|
||||||
state.yn2 = yn2;
|
state.yn2 = static_cast<s16>(yn2);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue