Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/locale Fix signed/unsigned comparison warnings.



details:   https://anonhg.NetBSD.org/src/rev/7034b9850879
branches:  trunk
changeset: 539198:7034b9850879
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Nov 11 01:02:30 2002 +0000

description:
Fix signed/unsigned comparison warnings.

diffstat:

 lib/libc/locale/___runetype_mb.c |  6 +++---
 lib/libc/locale/___tolower_mb.c  |  6 +++---
 lib/libc/locale/___toupper_mb.c  |  6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)

diffs (81 lines):

diff -r 99b7eb304514 -r 7034b9850879 lib/libc/locale/___runetype_mb.c
--- a/lib/libc/locale/___runetype_mb.c  Mon Nov 11 00:54:57 2002 +0000
+++ b/lib/libc/locale/___runetype_mb.c  Mon Nov 11 01:02:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ___runetype_mb.c,v 1.4 2002/03/17 22:14:24 tshiozak Exp $      */
+/*     $NetBSD: ___runetype_mb.c,v 1.5 2002/11/11 01:02:30 thorpej Exp $       */
 
 /*-
  * Copyright (c) 1993
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: ___runetype_mb.c,v 1.4 2002/03/17 22:14:24 tshiozak Exp $");
+__RCSID("$NetBSD: ___runetype_mb.c,v 1.5 2002/11/11 01:02:30 thorpej Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <wctype.h>
@@ -49,7 +49,7 @@
 ___runetype_mb(c)
        wint_t c;
 {
-       int x;
+       uint32_t x;
        _RuneRange *rr = &_CurrentRuneLocale->rl_runetype_ext;
        _RuneEntry *re = rr->rr_rune_ranges;
 
diff -r 99b7eb304514 -r 7034b9850879 lib/libc/locale/___tolower_mb.c
--- a/lib/libc/locale/___tolower_mb.c   Mon Nov 11 00:54:57 2002 +0000
+++ b/lib/libc/locale/___tolower_mb.c   Mon Nov 11 01:02:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ___tolower_mb.c,v 1.4 2002/03/17 22:14:24 tshiozak Exp $       */
+/*     $NetBSD: ___tolower_mb.c,v 1.5 2002/11/11 01:03:21 thorpej Exp $        */
 
 /*-
  * Copyright (c) 1993
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: ___tolower_mb.c,v 1.4 2002/03/17 22:14:24 tshiozak Exp $");
+__RCSID("$NetBSD: ___tolower_mb.c,v 1.5 2002/11/11 01:03:21 thorpej Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <wctype.h>
@@ -49,7 +49,7 @@
 ___tolower_mb(c)
        wint_t c;
 {
-       int x;
+       uint32_t x;
        _RuneRange *rr = &_CurrentRuneLocale->rl_maplower_ext;
        _RuneEntry *re = rr->rr_rune_ranges;
 
diff -r 99b7eb304514 -r 7034b9850879 lib/libc/locale/___toupper_mb.c
--- a/lib/libc/locale/___toupper_mb.c   Mon Nov 11 00:54:57 2002 +0000
+++ b/lib/libc/locale/___toupper_mb.c   Mon Nov 11 01:02:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ___toupper_mb.c,v 1.4 2002/03/17 22:14:25 tshiozak Exp $       */
+/*     $NetBSD: ___toupper_mb.c,v 1.5 2002/11/11 01:03:22 thorpej Exp $        */
 
 /*-
  * Copyright (c) 1993
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: ___toupper_mb.c,v 1.4 2002/03/17 22:14:25 tshiozak Exp $");
+__RCSID("$NetBSD: ___toupper_mb.c,v 1.5 2002/11/11 01:03:22 thorpej Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <wctype.h>
@@ -49,7 +49,7 @@
 ___toupper_mb(c)
        wint_t c;
 {
-       int x;
+       uint32_t x;
        _RuneRange *rr = &_CurrentRuneLocale->rl_mapupper_ext;
        _RuneEntry *re = rr->rr_rune_ranges;
 



Home | Main Index | Thread Index | Old Index