aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alError.cpp
diff options
context:
space:
mode:
authorFilip Gawin <[email protected]>2019-01-08 19:42:44 +0100
committerFilip Gawin <[email protected]>2019-01-08 19:42:44 +0100
commit0d3a0635d946ab1f43fd98cec4882248bc990846 (patch)
treef9cade218fe90b815bf1b529607fadd7bfa0f656 /OpenAL32/alError.cpp
parent2a7f27ca58f9897be06fe815a46ea76a01734a0b (diff)
Avoid using old style casts
To think about: examples/alffplay.cpp:600 OpenAL32/Include/alMain.h:295
Diffstat (limited to 'OpenAL32/alError.cpp')
-rw-r--r--OpenAL32/alError.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenAL32/alError.cpp b/OpenAL32/alError.cpp
index 303fbeac..d65b910a 100644
--- a/OpenAL32/alError.cpp
+++ b/OpenAL32/alError.cpp
@@ -43,17 +43,17 @@ void alSetError(ALCcontext *context, ALenum errorCode, const char *msg, ...)
int msglen{vsnprintf(message, sizeof(message), msg, args)};
va_end(args);
- if(msglen < 0 || (size_t)msglen >= sizeof(message))
+ if(msglen < 0 || static_cast<size_t>(msglen) >= sizeof(message))
{
message[sizeof(message)-1] = 0;
- msglen = (int)strlen(message);
+ msglen = static_cast<int>(strlen(message));
}
if(msglen > 0)
msg = message;
else
{
msg = "<internal error constructing message>";
- msglen = (int)strlen(msg);
+ msglen = static_cast<int>(strlen(msg));
}
WARN("Error generated on context %p, code 0x%04x, \"%s\"\n",