From: uz Date: Thu, 27 Jan 2011 16:40:48 +0000 (+0000) Subject: Save a few bytes when writing file list entries to the object file. X-Git-Tag: V2.13.3~531 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=713c019a24745ee1e8cfa217830e7c05bfd99c99;p=cc65 Save a few bytes when writing file list entries to the object file. git-svn-id: svn://svn.cc65.org/cc65/trunk@4929 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ca65/filetab.c b/src/ca65/filetab.c index be2c15ba1..43df4def5 100644 --- a/src/ca65/filetab.c +++ b/src/ca65/filetab.c @@ -265,7 +265,7 @@ void WriteFiles (void) /* Write the fields */ ObjWriteVar (F->Name); ObjWrite32 (F->MTime); - ObjWrite32 (F->Size); + ObjWriteVar (F->Size); } /* Done writing files */ diff --git a/src/ld65/fileinfo.c b/src/ld65/fileinfo.c index 7965d574f..5617b472b 100644 --- a/src/ld65/fileinfo.c +++ b/src/ld65/fileinfo.c @@ -6,7 +6,7 @@ /* */ /* */ /* */ -/* (C) 2001-2010, Ullrich von Bassewitz */ +/* (C) 2001-2011, Ullrich von Bassewitz */ /* Roemerstrasse 52 */ /* D-70794 Filderstadt */ /* EMail: uz@cc65.org */ @@ -75,7 +75,7 @@ FileInfo* ReadFileInfo (FILE* F, ObjData* O) /* Read the fields from the file */ FI->Name = MakeGlobalStringId (O, ReadVar (F)); FI->MTime = Read32 (F); - FI->Size = Read32 (F); + FI->Size = ReadVar (F); /* Return the new struct */ return FI;