Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/regex minimal fix to match the library code (...



details:   https://anonhg.NetBSD.org/src/rev/b39b676db207
branches:  trunk
changeset: 959773:b39b676db207
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Feb 24 02:33:56 2021 +0000

description:
minimal fix to match the library code (really make the constants unsigned
instead)

diffstat:

 tests/lib/libc/regex/debug.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r b0f5c3322428 -r b39b676db207 tests/lib/libc/regex/debug.c
--- a/tests/lib/libc/regex/debug.c      Wed Feb 24 01:46:57 2021 +0000
+++ b/tests/lib/libc/regex/debug.c      Wed Feb 24 02:33:56 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: debug.c,v 1.4 2021/02/23 14:59:09 christos Exp $       */
+/*     $NetBSD: debug.c,v 1.5 2021/02/24 02:33:56 christos Exp $       */
 
 /*-
  * Copyright (c) 1993 The NetBSD Foundation, Inc.
@@ -181,21 +181,21 @@
                        break;
                case OCH_:
                        fprintf(d, "<");
-                       if (OP(*(s+opnd)) != OOR2)
+                       if (OP(*(s+opnd)) != (sop)OOR2)
                                fprintf(d, "<%ld>", (long)opnd);
                        break;
                case OOR1:
-                       if (OP(*(s-opnd)) != OOR1 && OP(*(s-opnd)) != OCH_)
+                       if (OP(*(s-opnd)) != (sop)OOR1 && OP(*(s-opnd)) != (sop)OCH_)
                                fprintf(d, "<%ld>", (long)opnd);
                        fprintf(d, "|");
                        break;
                case OOR2:
                        fprintf(d, "|");
-                       if (OP(*(s+opnd)) != OOR2 && OP(*(s+opnd)) != O_CH)
+                       if (OP(*(s+opnd)) != (sop)OOR2 && OP(*(s+opnd)) != (sop)O_CH)
                                fprintf(d, "<%ld>", (long)opnd);
                        break;
                case O_CH:
-                       if (OP(*(s-opnd)) != OOR1)
+                       if (OP(*(s-opnd)) != (sop)OOR1)
                                fprintf(d, "<%ld>", (long)opnd);
                        fprintf(d, ">");
                        break;



Home | Main Index | Thread Index | Old Index