diff options
author | Chris Robinson <[email protected]> | 2019-09-11 06:47:56 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-11 06:47:56 -0700 |
commit | be0442c6207cc10fca079a803bbdd8985959b657 (patch) | |
tree | f454f679117428575d639e5b386104495889fe85 /alc/backends/sndio.cpp | |
parent | 388928f3aa1ecf1a4f930c27687e7d0d4a9fd824 (diff) |
Avoid C-style casts in C++
Diffstat (limited to 'alc/backends/sndio.cpp')
-rw-r--r-- | alc/backends/sndio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/backends/sndio.cpp b/alc/backends/sndio.cpp index 587f67bb..c7a86670 100644 --- a/alc/backends/sndio.cpp +++ b/alc/backends/sndio.cpp @@ -396,7 +396,7 @@ ALCenum SndioCapture::open(const ALCchar *name) (mDevice->FmtType == DevFmtUShort && par.bits == 16 && par.sig == 0) || (mDevice->FmtType == DevFmtInt && par.bits == 32 && par.sig != 0) || (mDevice->FmtType == DevFmtUInt && par.bits == 32 && par.sig == 0)) || - mDevice->channelsFromFmt() != (ALsizei)par.rchan || + mDevice->channelsFromFmt() != static_cast<int>(par.rchan) || mDevice->Frequency != par.rate) { ERR("Failed to set format %s %s %uhz, got %c%u %u-channel %uhz instead\n", |