Cleanup: remove redundant double parenthesis

This commit is contained in:
2022-09-25 15:14:13 +10:00
parent 865894481c
commit c9e35c2ced
125 changed files with 194 additions and 196 deletions

View File

@@ -80,7 +80,7 @@ static void APIENTRY debug_callback(GLenum UNUSED(source),
const bool use_color = CLG_color_support_get(&LOG);
if (ELEM(severity, GL_DEBUG_SEVERITY_LOW, GL_DEBUG_SEVERITY_NOTIFICATION)) {
if (((LOG.type->flag & CLG_FLAG_USE) && (LOG.type->level >= CLG_SEVERITY_INFO))) {
if ((LOG.type->flag & CLG_FLAG_USE) && (LOG.type->level >= CLG_SEVERITY_INFO)) {
const char *format = use_color ? "\033[2m%s\033[0m" : "%s";
CLG_logf(LOG.type, CLG_SEVERITY_INFO, "Notification", "", format, message);
}
@@ -110,7 +110,7 @@ static void APIENTRY debug_callback(GLenum UNUSED(source),
break;
}
if (((LOG.type->flag & CLG_FLAG_USE) && (LOG.type->level <= clog_severity))) {
if ((LOG.type->flag & CLG_FLAG_USE) && (LOG.type->level <= clog_severity)) {
CLG_logf(LOG.type, clog_severity, debug_groups, "", "%s", message);
if (severity == GL_DEBUG_SEVERITY_HIGH) {
/* Focus on error message. */