From c2d859b9f3ab44be65a8a94690b9a21afd0a9698 Mon Sep 17 00:00:00 2001 From: uz Date: Fri, 26 Aug 2011 10:05:28 +0000 Subject: [PATCH] Fix a C89 incompatibility (Stefan Haubenthal). git-svn-id: svn://svn.cc65.org/cc65/trunk@5272 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/dbginfo/dbginfo.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/dbginfo/dbginfo.c b/src/dbginfo/dbginfo.c index ca089cd3b..d61949a39 100644 --- a/src/dbginfo/dbginfo.c +++ b/src/dbginfo/dbginfo.c @@ -1884,16 +1884,17 @@ static cc65_typedata* TypeFromString (TypeParseData* P) * recursively. Will set P->Error and return NULL in case of problems. */ { - unsigned char B; - unsigned I; - unsigned Count; + cc65_typedata* Data; + unsigned char B; + unsigned I; + unsigned Count; /* Allocate a new entry */ if (P->ItemIndex >= P->ItemCount) { P->Error = 1; return 0; } - cc65_typedata* Data = &P->ItemData[P->ItemIndex++]; + Data = &P->ItemData[P->ItemIndex++]; /* Assume no following node */ Data->next = 0; -- 2.39.5