Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses Fix operator precedence for !HAVE_WCHAR



details:   https://anonhg.NetBSD.org/src/rev/f3bfa0e7141b
branches:  trunk
changeset: 445433:f3bfa0e7141b
user:      uwe <uwe%NetBSD.org@localhost>
date:      Mon Oct 29 01:02:16 2018 +0000

description:
Fix operator precedence for !HAVE_WCHAR

diffstat:

 lib/libcurses/refresh.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 98c9b2786665 -r f3bfa0e7141b lib/libcurses/refresh.c
--- a/lib/libcurses/refresh.c   Mon Oct 29 00:31:57 2018 +0000
+++ b/lib/libcurses/refresh.c   Mon Oct 29 01:02:16 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: refresh.c,v 1.91 2018/10/21 12:47:33 roy Exp $ */
+/*     $NetBSD: refresh.c,v 1.92 2018/10/29 01:02:16 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.91 2018/10/21 12:47:33 roy Exp $");
+__RCSID("$NetBSD: refresh.c,v 1.92 2018/10/29 01:02:16 uwe Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -1253,8 +1253,9 @@
                _cursesi_screen->ly = wy;
                _cursesi_screen->lx = wx;
 #ifndef HAVE_WCHAR
-               while (wx <= lch && (memcmp(nsp, csp, sizeof(__LDATA)) != 0) ||
-                       (wlp->flags & __ISFORCED))
+               while (wx <= lch &&
+                      ((memcmp(nsp, csp, sizeof(__LDATA)) != 0)
+                       || (wlp->flags & __ISFORCED)))
                {
                        if (ce != NULL &&
                            wx >= nlsp && nsp->ch == ' ' && nsp->attr == lspc)



Home | Main Index | Thread Index | Old Index