Fixed a parameter declaration regression
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 21 Oct 2000 21:17:47 +0000 (21:17 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 21 Oct 2000 21:17:47 +0000 (21:17 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@481 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCsymt.c

index 7d395978900cb064f70a5cd6106e7fe3f3edc93b..6916dd2bf5bf3aed70a4e7c33601c20214efac63 100644 (file)
@@ -1512,7 +1512,7 @@ void  processFuncArgs   (symbol *func, int ignoreName)
            strcpy (val->sym->rname,val->name);
            val->sym->_isparm = 1;
            SPEC_OCLS(val->etype) = SPEC_OCLS(val->sym->etype) = 
-               (options.model ? xdata : data);
+               (options.model != MODEL_SMALL ? xdata : data);
            SPEC_STAT(val->etype) = SPEC_STAT(val->sym->etype) = 
                SPEC_STAT(func->etype);
        }