Fix a C89 incompatibility (Stefan Haubenthal).

git-svn-id: svn://svn.cc65.org/cc65/trunk@5272 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-08-26 10:05:28 +00:00
parent 7c96984473
commit c2d859b9f3

View File

@@ -1884,16 +1884,17 @@ static cc65_typedata* TypeFromString (TypeParseData* P)
* recursively. Will set P->Error and return NULL in case of problems. * recursively. Will set P->Error and return NULL in case of problems.
*/ */
{ {
unsigned char B; cc65_typedata* Data;
unsigned I; unsigned char B;
unsigned Count; unsigned I;
unsigned Count;
/* Allocate a new entry */ /* Allocate a new entry */
if (P->ItemIndex >= P->ItemCount) { if (P->ItemIndex >= P->ItemCount) {
P->Error = 1; P->Error = 1;
return 0; return 0;
} }
cc65_typedata* Data = &P->ItemData[P->ItemIndex++]; Data = &P->ItemData[P->ItemIndex++];
/* Assume no following node */ /* Assume no following node */
Data->next = 0; Data->next = 0;