Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/atari/stand/ahdilabel Add a cast to unsigned char f...



details:   https://anonhg.NetBSD.org/src/rev/3707d1e06b08
branches:  trunk
changeset: 571165:3707d1e06b08
user:      he <he%NetBSD.org@localhost>
date:      Fri Nov 12 09:52:15 2004 +0000

description:
Add a cast to unsigned char for an argument to toupper().

diffstat:

 sys/arch/atari/stand/ahdilabel/ahdilabel.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c71fb88e3b6a -r 3707d1e06b08 sys/arch/atari/stand/ahdilabel/ahdilabel.c
--- a/sys/arch/atari/stand/ahdilabel/ahdilabel.c        Fri Nov 12 04:15:29 2004 +0000
+++ b/sys/arch/atari/stand/ahdilabel/ahdilabel.c        Fri Nov 12 09:52:15 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ahdilabel.c,v 1.4 2001/07/26 22:53:13 wiz Exp $ */
+/* $NetBSD: ahdilabel.c,v 1.5 2004/11/12 09:52:15 he Exp $ */
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -350,7 +350,7 @@
                        /* Extend to end of disk */
                        return (ptable->secperunit -
                            ptable->parts[part].start);
-               i = (int) (toupper (buf[1]) - 'A');
+               i = (int) (toupper ((unsigned char)(buf[1]) - 'A'));
                if (i >= 0 && i <= ptable->nparts ) {
                        if (se == PART_ROOT && part > i)
                                /* Root after partition ... */



Home | Main Index | Thread Index | Old Index