aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alError.cpp
diff options
context:
space:
mode:
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",