Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libcurses/director tests/libcurses: unary minus do...



details:   https://anonhg.NetBSD.org/src/rev/268b83138a0c
branches:  trunk
changeset: 959291:268b83138a0c
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Feb 07 12:08:42 2021 +0000

description:
tests/libcurses: unary minus doesn't make sense on bool expressions

No functional change since -1 is as non-zero as 1.

diffstat:

 tests/lib/libcurses/director/testlang_parse.y |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 1862423d2beb -r 268b83138a0c tests/lib/libcurses/director/testlang_parse.y
--- a/tests/lib/libcurses/director/testlang_parse.y     Sun Feb 07 12:05:36 2021 +0000
+++ b/tests/lib/libcurses/director/testlang_parse.y     Sun Feb 07 12:08:42 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: testlang_parse.y,v 1.19 2020/10/24 14:45:06 roy Exp $  */
+/*     $NetBSD: testlang_parse.y,v 1.20 2021/02/07 12:08:42 rillig Exp $       */
 
 /*-
  * Copyright 2009 Brett Lymn <blymn%NetBSD.org@localhost>
@@ -297,7 +297,7 @@
         * Check if var and return have same data types
         */
        if (((command.returns[1].data_type == data_byte) &&
--            (vars[command.returns[0].data_index].type != data_byte)))
+            (vars[command.returns[0].data_index].type != data_byte)))
                err(1, "Var type %s (%d) does not match return type %s (%d)",
                    enum_names[
                    vars[command.returns[0].data_index].type],



Home | Main Index | Thread Index | Old Index