From e5cdab4544610ecc7c5c2a42dedd96b5fdea3cc2 Mon Sep 17 00:00:00 2001 From: uz Date: Mon, 4 Jun 2012 07:48:37 +0000 Subject: [PATCH] Fixed a C99ism. git-svn-id: svn://svn.cc65.org/cc65/trunk@5682 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/od65/dump.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/od65/dump.c b/src/od65/dump.c index cbdf0e7fe..21a039e7f 100644 --- a/src/od65/dump.c +++ b/src/od65/dump.c @@ -924,13 +924,17 @@ void DumpObjSegSize (FILE* F, unsigned long Offset) /* Read and print the sizes of all segments */ while (Count--) { + unsigned long Size; + /* Read the data for one segment */ unsigned long DataSize = Read32 (F); unsigned long NextSeg = ftell (F) + DataSize; const char* Name = GetString (&StrPool, ReadVar (F)); unsigned Len = strlen (Name); - (void) ReadVar (F); /* Skip segment flags */ - unsigned long Size = ReadVar (F); + + /* Skip segment flags, read size */ + (void) ReadVar (F); + Size = ReadVar (F); /* Skip alignment, type and fragment count */ (void) ReadVar (F); -- 2.39.5