From 2c63a831ad8792989053d7dbd41374017e0e8d74 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 2 Aug 2022 18:06:11 -0700 Subject: [PATCH] gvpr binary: remove unnecessary parens --- lib/gvpr/compile.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/gvpr/compile.c b/lib/gvpr/compile.c index bcdee5522..a2e3e3195 100644 --- a/lib/gvpr/compile.c +++ b/lib/gvpr/compile.c @@ -1897,37 +1897,37 @@ binary(Expr_t * pg, Exnode_t * l, Exnode_t * ex, Exnode_t * r, int arg, case EQ: if (arg) return 0; - l->data.constant.value.integer = (li == ri); + l->data.constant.value.integer = li == ri; ret = 0; break; case NE: if (arg) return 0; - l->data.constant.value.integer = (li != ri); + l->data.constant.value.integer = li != ri; ret = 0; break; case '<': if (arg) return 0; - l->data.constant.value.integer = (li < ri); + l->data.constant.value.integer = li < ri; ret = 0; break; case LE: if (arg) return 0; - l->data.constant.value.integer = (li <= ri); + l->data.constant.value.integer = li <= ri; ret = 0; break; case GE: if (arg) return 0; - l->data.constant.value.integer = (li >= ri); + l->data.constant.value.integer = li >= ri; ret = 0; break; case '>': if (arg) return 0; - l->data.constant.value.integer = (li > ri); + l->data.constant.value.integer = li > ri; ret = 0; break; } @@ -1958,25 +1958,25 @@ binary(Expr_t * pg, Exnode_t * l, Exnode_t * ex, Exnode_t * r, int arg, case '<': if (arg) return 0; - l->data.constant.value.integer = (compare(lobjp, robjp) < 0); + l->data.constant.value.integer = compare(lobjp, robjp) < 0; ret = 0; break; case LE: if (arg) return 0; - l->data.constant.value.integer = (compare(lobjp, robjp) <= 0); + l->data.constant.value.integer = compare(lobjp, robjp) <= 0; ret = 0; break; case GE: if (arg) return 0; - l->data.constant.value.integer = (compare(lobjp, robjp) >= 0); + l->data.constant.value.integer = compare(lobjp, robjp) >= 0; ret = 0; break; case '>': if (arg) return 0; - l->data.constant.value.integer = (compare(lobjp, robjp) > 0); + l->data.constant.value.integer = compare(lobjp, robjp) > 0; ret = 0; break; } -- 2.40.0