Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 lint: remove redundant parentheses



details:   https://anonhg.NetBSD.org/src/rev/622149090c30
branches:  trunk
changeset: 980275:622149090c30
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Jan 30 18:12:07 2021 +0000

description:
lint: remove redundant parentheses

No functional change.

diffstat:

 usr.bin/xlint/lint1/tree.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (47 lines):

diff -r 844d374bd362 -r 622149090c30 usr.bin/xlint/lint1/tree.c
--- a/usr.bin/xlint/lint1/tree.c        Sat Jan 30 17:56:29 2021 +0000
+++ b/usr.bin/xlint/lint1/tree.c        Sat Jan 30 18:12:07 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tree.c,v 1.191 2021/01/24 14:47:43 rillig Exp $        */
+/*     $NetBSD: tree.c,v 1.192 2021/01/30 18:12:07 rillig Exp $        */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: tree.c,v 1.191 2021/01/24 14:47:43 rillig Exp $");
+__RCSID("$NetBSD: tree.c,v 1.192 2021/01/30 18:12:07 rillig Exp $");
 #endif
 
 #include <float.h>
@@ -3256,22 +3256,22 @@
                v->v_ldbl = l - r;
                break;
        case LT:
-               v->v_quad = (l < r) ? 1 : 0;
+               v->v_quad = l < r ? 1 : 0;
                break;
        case LE:
-               v->v_quad = (l <= r) ? 1 : 0;
+               v->v_quad = l <= r ? 1 : 0;
                break;
        case GE:
-               v->v_quad = (l >= r) ? 1 : 0;
+               v->v_quad = l >= r ? 1 : 0;
                break;
        case GT:
-               v->v_quad = (l > r) ? 1 : 0;
+               v->v_quad = l > r ? 1 : 0;
                break;
        case EQ:
-               v->v_quad = (l == r) ? 1 : 0;
+               v->v_quad = l == r ? 1 : 0;
                break;
        case NE:
-               v->v_quad = (l != r) ? 1 : 0;
+               v->v_quad = l != r ? 1 : 0;
                break;
        default:
                lint_assert(/*CONSTCOND*/false);



Home | Main Index | Thread Index | Old Index