From: Matthew Fernandez Date: Wed, 3 Aug 2022 01:06:11 +0000 (-0700) Subject: gvpr binary: remove unnecessary parens X-Git-Tag: 5.0.1~20^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c63a831ad8792989053d7dbd41374017e0e8d74;p=graphviz gvpr binary: remove unnecessary parens --- 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; }