aboutsummaryrefslogtreecommitdiffstats
path: root/alc/helpers.cpp
diff options
context:
space:
mode:
authorChris Robinson <chris.kcat@gmail.com>2019-09-11 06:47:56 -0700
committerChris Robinson <chris.kcat@gmail.com>2019-09-11 06:47:56 -0700
commitbe0442c6207cc10fca079a803bbdd8985959b657 (patch)
treef454f679117428575d639e5b386104495889fe85 /alc/helpers.cpp
parent388928f3aa1ecf1a4f930c27687e7d0d4a9fd824 (diff)
Avoid C-style casts in C++
Diffstat (limited to 'alc/helpers.cpp')
-rw-r--r--alc/helpers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/helpers.cpp b/alc/helpers.cpp
index ba95c0f8..84787637 100644
--- a/alc/helpers.cpp
+++ b/alc/helpers.cpp
@@ -255,7 +255,7 @@ auto filebuf::underflow() -> int_type
{
// Read in the next chunk of data, and set the pointers on success
DWORD got{};
- if(ReadFile(mFile, mBuffer.data(), (DWORD)mBuffer.size(), &got, nullptr))
+ if(ReadFile(mFile, mBuffer.data(), static_cast<DWORD>(mBuffer.size()), &got, nullptr))
setg(mBuffer.data(), mBuffer.data(), mBuffer.data()+got);
}
if(gptr() == egptr())