From f3ebd71273aef1ddc517e0a23875378dc09ab6af Mon Sep 17 00:00:00 2001 From: jesusc Date: Mon, 4 Aug 2003 16:46:29 +0000 Subject: [PATCH] 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 --- as/mcs51/asdata.c | 2 +- as/mcs51/asm.h | 2 +- as/z80/asdata.c | 2 +- as/z80/asm.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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 */ -- 2.30.2