/* Calculate the alignment bytes needed for the section */
V = (0x01UL << S->Align) - 1;
- S->Fill = (unsigned char) (((Seg->Size + V) & ~V) - Seg->Size);
+ S->Fill = (((Seg->Size + V) & ~V) - Seg->Size);
/* Adjust the segment size and set the section offset */
Seg->Size += S->Fill;
Print (stdout, 2, " Section from \"%s\"\n", GetObjFileName (Sec->Obj));
/* If we have fill bytes, write them now */
- Print (stdout, 2, " Filling 0x%x bytes with 0x%02x\n",
+ Print (stdout, 2, " Filling 0x%lx bytes with 0x%02x\n",
Sec->Fill, S->FillVal);
WriteMult (Tgt, S->FillVal, Sec->Fill);
Offs += Sec->Fill;
/* */
/* */
/* */
-/* (C) 1998-2010, Ullrich von Bassewitz */
+/* (C) 1998-2011, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
struct Fragment* FragLast; /* Pointer to last fragment */
unsigned long Offs; /* Offset into the segment */
unsigned long Size; /* Size of the section */
+ unsigned long Fill; /* Fill bytes for alignment */
unsigned char Align; /* Alignment */
- unsigned char Fill; /* Fill bytes for alignment */
unsigned char AddrSize; /* Address size of segment */
};