/* Read the segment data */
(void) Read32 (F); /* File size of data */
Name = MakeGlobalStringId (O, ReadVar (F)); /* Segment name */
- Size = Read32 (F); /* Size of data */
+ Size = ReadVar (F); /* Size of data */
Align = Read8 (F); /* Alignment */
Type = Read8 (F); /* Segment type */
FragCount = ReadVar (F); /* Number of fragments */
case FRAG_FILL:
/* Will allocate memory, but we don't care... */
- Frag = NewFragment (Type, ReadVar (F), Sec);
+ Frag = NewFragment (Type, ReadVar (F), Sec);
break;
default:
printf (" Literal (%u bytes):", F->Size);
Count = F->Size;
Data = F->LitBuf;
- J = 100;
+ J = 100;
while (Count--) {
if (J > 75) {
printf ("\n ");
GetFragmentSourceLine (Frag));
break;
- case SEG_EXPR_INVALID:
+ case SEG_EXPR_INVALID:
Error ("Invalid expression in module `%s', line %u",
GetFragmentSourceName (Frag),
GetFragmentSourceLine (Frag));
/* Compare the start addresses */
if (S1->PC > S2->PC) {
- return 1;
+ return 1;
} else if (S1->PC < S2->PC) {
return -1;
} else {