Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses cellcmp - use logical && not bitwise &



details:   https://anonhg.NetBSD.org/src/rev/3a1a301c7eaa
branches:  trunk
changeset: 445917:3a1a301c7eaa
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sun Nov 18 00:45:44 2018 +0000

description:
cellcmp - use logical && not bitwise &

diffstat:

 lib/libcurses/refresh.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r fd36dddf07e5 -r 3a1a301c7eaa lib/libcurses/refresh.c
--- a/lib/libcurses/refresh.c   Sat Nov 17 20:53:35 2018 +0000
+++ b/lib/libcurses/refresh.c   Sun Nov 18 00:45:44 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: refresh.c,v 1.92 2018/10/29 01:02:16 uwe Exp $ */
+/*     $NetBSD: refresh.c,v 1.93 2018/11/18 00:45:44 uwe Exp $ */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)refresh.c  8.7 (Berkeley) 8/13/94";
 #else
-__RCSID("$NetBSD: refresh.c,v 1.92 2018/10/29 01:02:16 uwe Exp $");
+__RCSID("$NetBSD: refresh.c,v 1.93 2018/11/18 00:45:44 uwe Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -2039,7 +2039,7 @@
 cellcmp( __LDATA *x, __LDATA *y )
 {
        nschar_t *xnp = x->nsp, *ynp = y->nsp;
-       int ret = ( x->ch == y->ch ) & ( x->attr == y->attr );
+       int ret = ( x->ch == y->ch ) && ( x->attr == y->attr );
 
        if (!ret)
                return 0;



Home | Main Index | Thread Index | Old Index