projects
/
fw
/
sdcc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f3ebd71
)
Fixed some warnings when building in MSVC
author
jesusc
<jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 4 Aug 2003 16:48:50 +0000
(16:48 +0000)
committer
jesusc
<jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 4 Aug 2003 16:48:50 +0000
(16:48 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2805
4a8a32a2
-be11-0410-ad9d-
d568d2c75423
link/z80/aslink.h
patch
|
blob
|
history
link/z80/lkdata.c
patch
|
blob
|
history
link/z80/lkeval.c
patch
|
blob
|
history
link/z80/lkgb.c
patch
|
blob
|
history
link/z80/lkihx.c
patch
|
blob
|
history
link/z80/lks19.c
patch
|
blob
|
history
link/z80/lksym.c
patch
|
blob
|
history
diff --git
a/link/z80/aslink.h
b/link/z80/aslink.h
index 8a2685466bafdcc13f42779f9a3d901cc430dba5..939e7437f3bd7871b76d9e1af5adc04a0c11a97d 100644
(file)
--- a/
link/z80/aslink.h
+++ b/
link/z80/aslink.h
@@
-448,7
+448,7
@@
extern char *rp; /* pointer into the LST file
extern char rb[NINPUT]; /* LST file text line being
* address relocated
*/
extern char rb[NINPUT]; /* LST file text line being
* address relocated
*/
-extern
char
ctype[]; /* array of character types, one per
+extern
unsigned char
ctype[]; /* array of character types, one per
* ASCII character
*/
* ASCII character
*/
diff --git
a/link/z80/lkdata.c
b/link/z80/lkdata.c
index 0442ef7560ad38f86e95bd3b15a04e26a861bcc7..672612afa2cf6ddc8865ad915ce584372bfc47d9 100644
(file)
--- a/
link/z80/lkdata.c
+++ b/
link/z80/lkdata.c
@@
-424,7
+424,7
@@
struct lbfile *lbfhead; /* pointer to the first
* array of character types, one per
* ASCII character
*/
* 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,
/*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/link/z80/lkeval.c
b/link/z80/lkeval.c
index 2dff89bee6853237d8f5a680ba1f8052398c55d1..e4bfe1d525236ba00fc390e425c5cecb4d0b3bad 100644
(file)
--- a/
link/z80/lkeval.c
+++ b/
link/z80/lkeval.c
@@
-227,7
+227,7
@@
term()
return(v);
}
if (c == '-') {
return(v);
}
if (c == '-') {
- return(-expr(100));
+ return(
0
-expr(100));
}
if (c == '~') {
return(~expr(100));
}
if (c == '~') {
return(~expr(100));
diff --git
a/link/z80/lkgb.c
b/link/z80/lkgb.c
index 9ecac07b5ffeec6209b477ebb4e3b08d0550f0e6..9fdeb4e6f6838c271912d1f4efd536560ca5d768 100644
(file)
--- a/
link/z80/lkgb.c
+++ b/
link/z80/lkgb.c
@@
-171,7
+171,7
@@
VOID gb(int in)
chk = 0;
for(pos = 0x0134; pos < 0x014D; pos++)
chk += cart[pos/SEGSIZE][pos%SEGSIZE];
chk = 0;
for(pos = 0x0134; pos < 0x014D; pos++)
chk += cart[pos/SEGSIZE][pos%SEGSIZE];
- cart[0x014D/SEGSIZE][0x014D%SEGSIZE] =
0xE7 - (chk&0xFF
);
+ cart[0x014D/SEGSIZE][0x014D%SEGSIZE] =
(unsigned char)(0xE7 - (chk&0xFF)
);
/* Update checksum */
chk = 0;
cart[0x014E/SEGSIZE][0x014E%SEGSIZE] = 0;
/* Update checksum */
chk = 0;
cart[0x014E/SEGSIZE][0x014E%SEGSIZE] = 0;
@@
-179,8
+179,8
@@
VOID gb(int in)
for(i = 0; i < NBSEG; i++)
for(pos = 0; pos < SEGSIZE; pos++)
chk += cart[i][pos];
for(i = 0; i < NBSEG; i++)
for(pos = 0; pos < SEGSIZE; pos++)
chk += cart[i][pos];
- cart[0x014E/SEGSIZE][0x014E%SEGSIZE] = (
chk>>8)&0xFF
;
- cart[0x014F/SEGSIZE][0x014F%SEGSIZE] =
chk&0xFF
;
+ cart[0x014E/SEGSIZE][0x014E%SEGSIZE] = (
unsigned char)((chk>>8)&0xFF)
;
+ cart[0x014F/SEGSIZE][0x014F%SEGSIZE] =
(unsigned char)(chk&0xFF)
;
for(i = 0; i < NBSEG; i++)
fwrite(cart[i], 1, SEGSIZE, ofp);
for(i = 0; i < NBSEG; i++)
fwrite(cart[i], 1, SEGSIZE, ofp);
diff --git
a/link/z80/lkihx.c
b/link/z80/lkihx.c
index a0e35d99122382e2e79778ae58451d64c96e0d38..082a5fc5ed9b3e2afdd04a9ee03f23b6fddf5b9e 100644
(file)
--- a/
link/z80/lkihx.c
+++ b/
link/z80/lkihx.c
@@
-127,7
+127,7
@@
ihx(i)
fprintf(ofp, "00");
}
}
fprintf(ofp, "00");
}
}
- fprintf(ofp, "%02X\n", (-chksum) & 0xff);
+ fprintf(ofp, "%02X\n", (
0
-chksum) & 0xff);
} else {
fprintf(ofp, ":00000001FF\n");
}
} else {
fprintf(ofp, ":00000001FF\n");
}
diff --git
a/link/z80/lks19.c
b/link/z80/lks19.c
index 905e7e74c73ce9ede3d0ebb6c8fa10b8173cc7d8..bbca75308364fee8b1152650171d5978efeeeb51 100644
(file)
--- a/
link/z80/lks19.c
+++ b/
link/z80/lks19.c
@@
-116,7
+116,7
@@
s19(i)
chksum += rtval[i];
}
}
chksum += rtval[i];
}
}
- fprintf(ofp, "%02X\n", (-chksum-1) & 0xff);
+ fprintf(ofp, "%02X\n", (
0
-chksum-1) & 0xff);
} else {
fprintf(ofp, "S9030000FC\n");
}
} else {
fprintf(ofp, "S9030000FC\n");
}
diff --git
a/link/z80/lksym.c
b/link/z80/lksym.c
index 8699da8e0844a407102401424689e2faca4155b5..33cc6ffb9b097a98f084bda491a9151f29aac59b 100644
(file)
--- a/
link/z80/lksym.c
+++ b/
link/z80/lksym.c
@@
-123,7
+123,9
@@
syminit()
struct sym *
newsym()
{
struct sym *
newsym()
{
- register int c, i, nglob;
+ register unsigned i ;
+ register unsigned nglob ;
+ register int c ;
struct sym *tsp;
struct sym **s;
char id[NCPS];
struct sym *tsp;
struct sym **s;
char id[NCPS];