Make ACS array index unsigned.
This commit is contained in:
parent
d6a738e190
commit
ea5f9be092
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: acs.c,v 1.4 2000/04/11 20:41:38 simonb Exp $ */
|
/* $NetBSD: acs.c,v 1.5 2000/04/12 21:33:35 jdc Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||||
|
@ -51,7 +51,7 @@ __init_acs()
|
||||||
{
|
{
|
||||||
int count;
|
int count;
|
||||||
char *aofac; /* Address of 'ac' */
|
char *aofac; /* Address of 'ac' */
|
||||||
char acs, term;
|
unsigned char acs, term;
|
||||||
|
|
||||||
/* Default value '+' for all ACS characters */
|
/* Default value '+' for all ACS characters */
|
||||||
for (count=0; count < NUM_ACS; count++)
|
for (count=0; count < NUM_ACS; count++)
|
||||||
|
@ -96,8 +96,9 @@ __init_acs()
|
||||||
return;
|
return;
|
||||||
if ((term = *aofac) == '\0')
|
if ((term = *aofac) == '\0')
|
||||||
return;
|
return;
|
||||||
if (acs > 0) /* Only add characters 1 to 127 */
|
/* Only add characters 1 to 127 */
|
||||||
_acs_char[(unsigned char)acs] = term | __ALTCHARSET;
|
if (acs < NUM_ACS)
|
||||||
|
_acs_char[acs] = term | __ALTCHARSET;
|
||||||
aofac++;
|
aofac++;
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
__CTRACE("__init_acs: %c = %c\n", acs, term);
|
__CTRACE("__init_acs: %c = %c\n", acs, term);
|
||||||
|
|
Loading…
Reference in New Issue