From 2fa2c35bdc2a09d5e856bb12ad6dff556bbe65a8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 4 Aug 2019 11:59:14 -0700 Subject: Modify LIKELY and UNLIKELY to not need extra parenthesis --- alc/helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alc/helpers.cpp') diff --git a/alc/helpers.cpp b/alc/helpers.cpp index e86af6ce..7a547168 100644 --- a/alc/helpers.cpp +++ b/alc/helpers.cpp @@ -478,7 +478,7 @@ void al_print(FILE *logfile, const char *fmt, ...) va_start(args, fmt); va_copy(args2, args); int msglen{std::vsnprintf(str, sizeof(stcmsg), fmt, args)}; - if(UNLIKELY(msglen >= 0 && static_cast(msglen) >= sizeof(stcmsg))) + if UNLIKELY(msglen >= 0 && static_cast(msglen) >= sizeof(stcmsg)) { dynmsg.resize(static_cast(msglen) + 1u); str = dynmsg.data(); -- cgit v1.2.3