diff options
Diffstat (limited to 'al/error.cpp')
-rw-r--r-- | al/error.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/al/error.cpp b/al/error.cpp index 3a1a9ac3..9db13947 100644 --- a/al/error.cpp +++ b/al/error.cpp @@ -87,7 +87,8 @@ void ALCcontext::setError(ALenum errorCode, const char *msg, ...) ALenum curerr{AL_NO_ERROR}; mLastError.compare_exchange_strong(curerr, errorCode); - debugMessage(DebugSource::API, DebugType::Error, 0, DebugSeverity::High, msglen, msg); + debugMessage(DebugSource::API, DebugType::Error, 0, DebugSeverity::High, + {msg, static_cast<uint>(msglen)}); } /* Special-case alGetError since it (potentially) raises a debug signal and |