diff options
| author | 2019-02-25 09:24:36 -0500 | |
|---|---|---|
| committer | 2019-02-25 09:24:39 -0500 | |
| commit | a12f4efa2f908e2c1b0b9343a6314dfce95e0926 (patch) | |
| tree | 2cbd07ee65f8dea3bf6b0a4059778b0dab7dbe66 /src/audio_core/codec.cpp | |
| parent | Merge pull request #2118 from FernandoS27/ipa-improve (diff) | |
| download | yuzu-a12f4efa2f908e2c1b0b9343a6314dfce95e0926.tar.gz yuzu-a12f4efa2f908e2c1b0b9343a6314dfce95e0926.tar.xz yuzu-a12f4efa2f908e2c1b0b9343a6314dfce95e0926.zip | |
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.
Diffstat (limited to 'src/audio_core/codec.cpp')
| -rw-r--r-- | src/audio_core/codec.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/codec.cpp b/src/audio_core/codec.cpp index 454de798b..c5a0d98ce 100644 --- a/src/audio_core/codec.cpp +++ b/src/audio_core/codec.cpp | |||
| @@ -68,8 +68,8 @@ std::vector<s16> DecodeADPCM(const u8* const data, std::size_t size, const ADPCM | |||
| 68 | } | 68 | } |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | state.yn1 = yn1; | 71 | state.yn1 = static_cast<s16>(yn1); |
| 72 | state.yn2 = yn2; | 72 | state.yn2 = static_cast<s16>(yn2); |
| 73 | 73 | ||
| 74 | return ret; | 74 | return ret; |
| 75 | } | 75 | } |