1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 07:29:33 +00:00

Changed 'switch' to 'if' according PR review comments.

This commit is contained in:
acqn 2020-08-02 13:24:46 +08:00 committed by Oliver Schmidt
parent 30fd8592ae
commit 2a555d198c

View File

@ -755,14 +755,11 @@ unsigned TypeOf (const Type* T)
unsigned FuncTypeOf (const Type* T)
/* Get the code generator flag for calling the function */
{
switch (GetUnderlyingTypeCode (T)) {
case T_FUNC:
return (((FuncDesc*) T->A.P)->Flags & FD_VARIADIC) ? 0 : CF_FIXARGC;
default:
Error ("Illegal function type %04lX", T->C);
return 0;
if (GetUnderlyingTypeCode (T) == T_FUNC) {
return (((FuncDesc*) T->A.P)->Flags & FD_VARIADIC) ? 0 : CF_FIXARGC;
} else {
Error ("Illegal function type %04lX", T->C);
return 0;
}
}