From 9cdbf67ec9ebad02a28df61452f16d4f5a164844 Mon Sep 17 00:00:00 2001 From: johanknol Date: Mon, 4 Mar 2002 15:58:12 +0000 Subject: [PATCH] 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 --- src/SDCCval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2