X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCicode.c;h=2e0c1908705f3aa552582081c37b9b096c0413c7;hb=1e1c6a588fe0a45598443b59686c6f6cd0f84cca;hp=5c38ec8f80937d5f2167fe196dbcd98b057f5332;hpb=74468ecd63cb0d34d8b6dcf3f422b8455e963dd6;p=fw%2Fsdcc diff --git a/src/SDCCicode.c b/src/SDCCicode.c index 5c38ec8f..2e0c1908 100644 --- a/src/SDCCicode.c +++ b/src/SDCCicode.c @@ -3341,7 +3341,7 @@ geniCodeCall (operand * left, ast * parms,int lvl) int stack = 0; if (!IS_FUNC(OP_SYMBOL(left)->type) && - !IS_CODEPTR(OP_SYMBOL(left)->type)) { + !IS_FUNCPTR(OP_SYMBOL(left)->type)) { werror (E_FUNCTION_EXPECTED); return operandFromValue(valueFromLit(0)); } @@ -3352,7 +3352,7 @@ geniCodeCall (operand * left, ast * parms,int lvl) geniCodeSEParms (parms,lvl); ftype = operandType (left); - if (IS_CODEPTR (ftype)) + if (IS_FUNCPTR (ftype)) ftype = ftype->next; /* first the parameters */