From 6aabf7559520ca7daf9a0f8929754ae2da1cb10a Mon Sep 17 00:00:00 2001 From: johanknol Date: Tue, 13 Nov 2001 18:45:07 +0000 Subject: [PATCH] size of a function is the size of a code pointer git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1582 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCsymt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/SDCCsymt.c b/src/SDCCsymt.c index 7432c3cb..8074d222 100644 --- a/src/SDCCsymt.c +++ b/src/SDCCsymt.c @@ -840,8 +840,6 @@ bitsForType (sym_link * p) /* this is a specifier */ switch (DCL_TYPE (p)) { - case FUNCTION: - return 2; case ARRAY: return DCL_ELEM (p) * getSize (p->next) * 8; case IPOINTER: @@ -851,6 +849,7 @@ bitsForType (sym_link * p) case EEPPOINTER: case FPOINTER: case CPOINTER: + case FUNCTION: return (FPTRSIZE * 8); case GPOINTER: return (GPTRSIZE * 8); -- 2.47.2