]> git.sur5r.net Git - cc65/commitdiff
Save a few bytes when writing file list entries to the object file.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 27 Jan 2011 16:40:48 +0000 (16:40 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 27 Jan 2011 16:40:48 +0000 (16:40 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4929 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/filetab.c
src/ld65/fileinfo.c

index be2c15ba1e12cc7cbd7ee2c39691554a7f973144..43df4def5d3b8e2d3b83171e12541f166953ca43 100644 (file)
@@ -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 */
index 7965d574f6c987a32faf4aab4a8a8317b3b449ba..5617b472b0bc35a6ce849a1e848939c134bff548 100644 (file)
@@ -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;