1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-17 00:29:31 +00:00

Fix several VC++ Warnings

git-svn-id: svn://svn.cc65.org/cc65/trunk@38 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2000-06-08 20:55:04 +00:00
parent 612627f5ca
commit 386c3d412d
4 changed files with 6 additions and 6 deletions

View File

@ -47,7 +47,7 @@
void Write8 (FILE* F, unsigned char Val) void Write8 (FILE* F, unsigned Val)
/* Write an 8 bit value to the file */ /* Write an 8 bit value to the file */
{ {
if (putc (Val, F) == EOF) { if (putc (Val, F) == EOF) {

View File

@ -50,7 +50,7 @@
void Write8 (FILE* F, unsigned char Val); void Write8 (FILE* F, unsigned Val);
/* Write an 8 bit value to the file */ /* Write an 8 bit value to the file */
void Write16 (FILE* F, unsigned Val); void Write16 (FILE* F, unsigned Val);

View File

@ -303,7 +303,7 @@ static void FreeO65RelocTab (O65RelocTab* R)
static void O65RelocPutByte (O65RelocTab* R, unsigned char B) static void O65RelocPutByte (O65RelocTab* R, unsigned B)
/* Put the byte into the relocation table */ /* Put the byte into the relocation table */
{ {
/* Do we have enough space in the buffer? */ /* Do we have enough space in the buffer? */
@ -316,7 +316,7 @@ static void O65RelocPutByte (O65RelocTab* R, unsigned char B)
} }
/* Put the byte into the buffer */ /* Put the byte into the buffer */
R->Buf [R->Fill++] = B; R->Buf [R->Fill++] = (unsigned char) B;
} }
@ -454,7 +454,7 @@ static unsigned O65WriteExpr (ExprNode* E, int Signed, unsigned Size,
O65RelocPutByte (D->CurReloc, 0xFF); O65RelocPutByte (D->CurReloc, 0xFF);
Diff -= 0xFE; Diff -= 0xFE;
} }
O65RelocPutByte (D->CurReloc, Diff); O65RelocPutByte (D->CurReloc, (unsigned char) Diff);
/* Remember this offset for the next time */ /* Remember this offset for the next time */
D->LastOffs = Offs; D->LastOffs = Offs;

View File

@ -168,7 +168,7 @@ static Section* NewSection (Segment* Seg, unsigned char Align, unsigned char Typ
/* Calculate the alignment bytes needed for the section */ /* Calculate the alignment bytes needed for the section */
V = (0x01UL << S->Align) - 1; V = (0x01UL << S->Align) - 1;
S->Fill = ((Seg->Size + V) & ~V) - Seg->Size; S->Fill = (unsigned char) (((Seg->Size + V) & ~V) - Seg->Size);
/* Adjust the segment size and set the section offset */ /* Adjust the segment size and set the section offset */
Seg->Size += S->Fill; Seg->Size += S->Fill;