aboutsummaryrefslogtreecommitdiffstats
path: root/common/alexcpt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/alexcpt.cpp')
-rw-r--r--common/alexcpt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/alexcpt.cpp b/common/alexcpt.cpp
index 21508b13..9e04bbaf 100644
--- a/common/alexcpt.cpp
+++ b/common/alexcpt.cpp
@@ -17,7 +17,7 @@ backend_exception::backend_exception(ALCenum code, const char *msg, ...) : mErro
va_start(args, msg);
va_copy(args2, args);
int msglen{std::vsnprintf(nullptr, 0, msg, args)};
- if(UNLIKELY(msglen > 0))
+ if(LIKELY(msglen > 0))
{
mMessage.resize(static_cast<size_t>(msglen)+1);
std::vsnprintf(&mMessage[0], mMessage.length(), msg, args2);