From 713c019a24745ee1e8cfa217830e7c05bfd99c99 Mon Sep 17 00:00:00 2001 From: uz Date: Thu, 27 Jan 2011 16:40:48 +0000 Subject: [PATCH] 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 --- src/ca65/filetab.c | 2 +- src/ld65/fileinfo.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5