Source-Changes-HG archive

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

[src/trunk]: src/games/gomoku gomoku: remove redundant parentheses



details:   https://anonhg.NetBSD.org/src/rev/24be88a3b0e6
branches:  trunk
changeset: 367250:24be88a3b0e6
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Jun 19 10:33:17 2022 +0000

description:
gomoku: remove redundant parentheses

No binary change.

diffstat:

 games/gomoku/bdinit.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 90702cf85475 -r 24be88a3b0e6 games/gomoku/bdinit.c
--- a/games/gomoku/bdinit.c     Sun Jun 19 10:23:48 2022 +0000
+++ b/games/gomoku/bdinit.c     Sun Jun 19 10:33:17 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bdinit.c,v 1.36 2022/06/19 10:23:48 rillig Exp $       */
+/*     $NetBSD: bdinit.c,v 1.37 2022/06/19 10:33:17 rillig Exp $       */
 
 /*
  * Copyright (c) 1994
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 /*     from: @(#)bdinit.c      8.2 (Berkeley) 5/3/95   */
-__RCSID("$NetBSD: bdinit.c,v 1.36 2022/06/19 10:23:48 rillig Exp $");
+__RCSID("$NetBSD: bdinit.c,v 1.37 2022/06/19 10:33:17 rillig Exp $");
 
 #include <string.h>
 #include "gomoku.h"
@@ -73,14 +73,14 @@
                sp->s_fval[WHITE][DIR_D_].s = 0x401;
                sp->s_fval[WHITE][DIR_DL].s = 0x401;
        }
-       if (col > (BSZ - 4)) {
+       if (col > BSZ - 4) {
                set_blocked(sp, DIR__R);
                set_blocked(sp, DIR_DR);
                sp->s_fval[BLACK][DIR__R].s = 0x600;
                sp->s_fval[BLACK][DIR_DR].s = 0x600;
                sp->s_fval[WHITE][DIR__R].s = 0x600;
                sp->s_fval[WHITE][DIR_DR].s = 0x600;
-       } else if (col == (BSZ - 4)) {
+       } else if (col == BSZ - 4) {
                sp->s_fval[BLACK][DIR__R].s = 0x500;
                sp->s_fval[WHITE][DIR__R].s = 0x500;
                if (!is_blocked(sp, DIR_DR)) {



Home | Main Index | Thread Index | Old Index