projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cleanup: Add and use macro MAX().
[cparser]
/
format_check.c
diff --git
a/format_check.c
b/format_check.c
index
d4beefa
..
41eecca
100644
(file)
--- a/
format_check.c
+++ b/
format_check.c
@@
-109,7
+109,7
@@
static int internal_check_printf_format(const expression_t *fmt_expr,
t = c->condition;
int const nt = internal_check_printf_format(t, arg, spec);
int const nf = internal_check_printf_format(c->false_expression, arg, spec);
- return
nt > nf ? nt : nf
;
+ return
MAX(nt, nf)
;
}
if (fmt_expr->kind != EXPR_STRING_LITERAL)