From: jesusc Date: Mon, 4 Aug 2003 16:46:29 +0000 (+0000) Subject: Fixed some warnings when building in MSVC X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=f3ebd71273aef1ddc517e0a23875378dc09ab6af;p=fw%2Fsdcc Fixed some warnings when building in MSVC git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2804 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/as/mcs51/asdata.c b/as/mcs51/asdata.c index c6ed0b44..16657520 100644 --- a/as/mcs51/asdata.c +++ b/as/mcs51/asdata.c @@ -246,7 +246,7 @@ FILE *ifp[MAXINC]; /* array of include-file file handles * array of character types, one per * ASCII character */ -char ctype[128] = { +unsigned char ctype[128] = { /*NUL*/ ILL, ILL, ILL, ILL, ILL, ILL, ILL, ILL, /*BS*/ ILL, SPACE, ILL, ILL, SPACE, ILL, ILL, ILL, /*DLE*/ ILL, ILL, ILL, ILL, ILL, ILL, ILL, ILL, diff --git a/as/mcs51/asm.h b/as/mcs51/asm.h index aa33d254..c81374ab 100644 --- a/as/mcs51/asm.h +++ b/as/mcs51/asm.h @@ -500,7 +500,7 @@ extern FILE *sfp[MAXFIL]; /* array of assembler-source file handles */ extern FILE *ifp[MAXINC]; /* array of include-file file handles */ -extern char ctype[128]; /* array of character types, one per +extern unsigned char ctype[128]; /* array of character types, one per * ASCII character */ diff --git a/as/z80/asdata.c b/as/z80/asdata.c index 26b621e2..2daf953b 100644 --- a/as/z80/asdata.c +++ b/as/z80/asdata.c @@ -235,7 +235,7 @@ FILE *ifp[MAXINC]; /* array of include-file file handles * array of character types, one per * ASCII character */ -char ctype[128] = { +unsigned char ctype[128] = { /*NUL*/ ILL, ILL, ILL, ILL, ILL, ILL, ILL, ILL, /*BS*/ ILL, SPACE, ILL, ILL, SPACE, ILL, ILL, ILL, /*DLE*/ ILL, ILL, ILL, ILL, ILL, ILL, ILL, ILL, diff --git a/as/z80/asm.h b/as/z80/asm.h index 48e0500f..d179177a 100644 --- a/as/z80/asm.h +++ b/as/z80/asm.h @@ -432,7 +432,7 @@ extern FILE *sfp[MAXFIL]; /* array of assembler-source file handles */ extern FILE *ifp[MAXINC]; /* array of include-file file handles */ -extern char ctype[128]; /* array of character types, one per +extern unsigned char ctype[128]; /* array of character types, one per * ASCII character */