From: bernhardheld Date: Wed, 28 Aug 2002 22:09:34 +0000 (+0000) Subject: a better fix X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=7e10994306565298005bb8fc18b51d11d935d726;p=fw%2Fsdcc a better fix git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2089 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCglue.c b/src/SDCCglue.c index 76582d4f..4af59fc4 100644 --- a/src/SDCCglue.c +++ b/src/SDCCglue.c @@ -763,8 +763,8 @@ printIvalArray (symbol * sym, sym_link * type, initList * ilist, } iloop = ilist->init.deep; - lcnt = 1; - for (last_type = type; last_type; last_type = last_type->next) + lcnt = DCL_ELEM (type); + for (last_type = type->next; last_type && DCL_ELEM (last_type); last_type = last_type->next) lcnt *= DCL_ELEM (last_type); for (;;)