-void Write8 (FILE* F, unsigned char Val)
+void Write8 (FILE* F, unsigned Val)
/* Write an 8 bit value to the file */
{
if (putc (Val, F) == EOF) {
-void Write8 (FILE* F, unsigned char Val);
+void Write8 (FILE* F, unsigned Val);
/* Write an 8 bit value to the file */
void Write16 (FILE* F, unsigned Val);
-static void O65RelocPutByte (O65RelocTab* R, unsigned char B)
+static void O65RelocPutByte (O65RelocTab* R, unsigned B)
/* Put the byte into the relocation table */
{
/* Do we have enough space in the buffer? */
}
/* Put the byte into the buffer */
- R->Buf [R->Fill++] = B;
+ R->Buf [R->Fill++] = (unsigned char) B;
}
O65RelocPutByte (D->CurReloc, 0xFF);
Diff -= 0xFE;
}
- O65RelocPutByte (D->CurReloc, Diff);
+ O65RelocPutByte (D->CurReloc, (unsigned char) Diff);
/* Remember this offset for the next time */
D->LastOffs = Offs;
/* Calculate the alignment bytes needed for the section */
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 */
Seg->Size += S->Fill;