aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/show-parse.c
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-02-18 18:03:34 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-02-20 12:35:10 +0100
commitb8f9557e0834c8dfe26d64c0bbab3e226b4e75b1 (patch)
treee8716d2416f4fe76329a55960f3645dbc47c66a7 /show-parse.c
parent90bf63e9779623488d02febf2dc8293b55283691 (diff)
downloadsparse-dev-b8f9557e0834c8dfe26d64c0bbab3e226b4e75b1.tar.gz
ban use of 'true' or 'false'
The idea being, of course, to be able for some functions to return a bool, making clear what's their possible returned values. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'show-parse.c')
-rw-r--r--show-parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/show-parse.c b/show-parse.c
index 9b5225da..72d3f385 100644
--- a/show-parse.c
+++ b/show-parse.c
@@ -1009,11 +1009,11 @@ static int show_label_expr(struct expression *expr)
static int show_conditional_expr(struct expression *expr)
{
int cond = show_expression(expr->conditional);
- int true = show_expression(expr->cond_true);
- int false = show_expression(expr->cond_false);
+ int valt = show_expression(expr->cond_true);
+ int valf = show_expression(expr->cond_false);
int new = new_pseudo();
- printf("[v%d]\tcmov.%d\t\tv%d,v%d,v%d\n", cond, expr->ctype->bit_size, new, true, false);
+ printf("[v%d]\tcmov.%d\t\tv%d,v%d,v%d\n", cond, expr->ctype->bit_size, new, valt, valf);
return new;
}