From: johanknol Date: Mon, 4 Mar 2002 15:58:12 +0000 (+0000) Subject: fixed X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=9cdbf67ec9ebad02a28df61452f16d4f5a164844;p=fw%2Fsdcc fixed const unsigned char arr[][2] = { { 0, 1 } }; t18.c:1: error: Initializer element is not constant git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1991 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCval.c b/src/SDCCval.c index e8613921..02172a72 100644 --- a/src/SDCCval.c +++ b/src/SDCCval.c @@ -1457,7 +1457,7 @@ getNelements (sym_link * type, initList * ilist) if (!ilist) return 0; - if (ilist->type == INIT_DEEP) + while (ilist->type == INIT_DEEP) ilist = ilist->init.deep; /* if type is a character array and there is only one