diff options
author | Chris Robinson <[email protected]> | 2019-09-18 20:13:58 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-18 20:13:58 -0700 |
commit | ffb5623ead779bde507a9fda7603cb6fc6b4aa2b (patch) | |
tree | dd08fa3f09bebd1fe9ddf0aee5c879c55508d983 | |
parent | a092624ed3028cdea9b84403ca286c4415d4d57c (diff) |
Fix a couple more annoying conversion warnings
-rw-r--r-- | alc/hrtf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/hrtf.cpp b/alc/hrtf.cpp index c1dc840b..ebdee46a 100644 --- a/alc/hrtf.cpp +++ b/alc/hrtf.cpp @@ -512,7 +512,7 @@ std::unique_ptr<HrtfEntry> CreateHrtfStore(ALuint rate, ALushort irSize, const A elev_[i].azCount = azCount[i]; elev_[i].irOffset = irOffset[i]; } - for(ALuint i{0};i < irSize*irCount;i++) + for(ALuint i{0};i < ALuint{irSize}*irCount;i++) { coeffs_[i][0] = coeffs[i][0]; coeffs_[i][1] = coeffs[i][1]; @@ -739,7 +739,7 @@ std::unique_ptr<HrtfEntry> LoadHrtf01(std::istream &data, const char *filename) for(size_t i{1};i < evCount;i++) { evOffset[i] = static_cast<ALushort>(evOffset[i-1] + azCount[i-1]); - irCount += azCount[i]; + irCount = static_cast<ALushort>(irCount + azCount[i]); } auto coeffs = al::vector<std::array<ALfloat,2>>(irSize*irCount); |