Fixed a bug

git-svn-id: svn://svn.cc65.org/cc65/trunk@1110 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2001-11-08 09:15:58 +00:00
parent ac470f4a3e
commit 465d208b2b

View file

@ -764,7 +764,7 @@ type GetQualifier (const type* T)
FuncDesc* GetFuncDesc (const type* T) FuncDesc* GetFuncDesc (const type* T)
/* Get the FuncDesc pointer from a function or pointer-to-function type */ /* Get the FuncDesc pointer from a function or pointer-to-function type */
{ {
if (T[0] == T_PTR) { if (UnqualifiedType (T[0]) == T_PTR) {
/* Pointer to function */ /* Pointer to function */
++T; ++T;
} }
@ -781,7 +781,7 @@ FuncDesc* GetFuncDesc (const type* T)
type* GetFuncReturn (type* T) type* GetFuncReturn (type* T)
/* Return a pointer to the return type of a function or pointer-to-function type */ /* Return a pointer to the return type of a function or pointer-to-function type */
{ {
if (T[0] == T_PTR) { if (UnqualifiedType (T[0]) == T_PTR) {
/* Pointer to function */ /* Pointer to function */
++T; ++T;
} }