aboutsummaryrefslogtreecommitdiffstats
path: root/common/alexcpt.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-05-05 00:05:41 -0700
committerChris Robinson <[email protected]>2019-05-05 00:05:41 -0700
commit0759ed721341cff00ddb3d8c40848cd20065500c (patch)
tree0caa45bab2d0bbda864235239fd1c337d8073ca2 /common/alexcpt.cpp
parent0c09c8378bc2c6a300177bcb417b7bf534ac4bf4 (diff)
Properly mark a likely branch
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);