Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 signedness issue with char, take 2. confirmed ...



details:   https://anonhg.NetBSD.org/src/rev/1e5dd1874218
branches:  trunk
changeset: 487847:1e5dd1874218
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Jun 13 17:31:37 2000 +0000

description:
signedness issue with char, take 2.  confirmed with i386 cc -funsigned-char.

diffstat:

 sys/netinet6/icmp6.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 2a8a0399caf8 -r 1e5dd1874218 sys/netinet6/icmp6.c
--- a/sys/netinet6/icmp6.c      Tue Jun 13 17:21:06 2000 +0000
+++ b/sys/netinet6/icmp6.c      Tue Jun 13 17:31:37 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: icmp6.c,v 1.32 2000/06/13 16:34:37 itojun Exp $        */
+/*     $NetBSD: icmp6.c,v 1.33 2000/06/13 17:31:37 itojun Exp $        */
 /*     $KAME: icmp6.c,v 1.113 2000/06/12 09:24:41 itojun Exp $ */
 
 /*
@@ -1416,7 +1416,7 @@
                if (a - a0 + 1 > alen || b - b0 + 1 > blen)
                        return 0;
 
-               if ((int)a[0] < 0 || (int)b[0] < 0)
+               if ((signed char)a[0] < 0 || (signed char)b[0] < 0)
                        return 0;
                /* we don't support compression yet */
                if (a[0] >= 64 || b[0] >= 64)



Home | Main Index | Thread Index | Old Index