From 7e10994306565298005bb8fc18b51d11d935d726 Mon Sep 17 00:00:00 2001 From: bernhardheld Date: Wed, 28 Aug 2002 22:09:34 +0000 Subject: [PATCH] a better fix git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2089 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCglue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 (;;) -- 2.47.2