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

Fixed a bug

git-svn-id: svn://svn.cc65.org/cc65/trunk@1112 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2001-11-12 14:20:56 +00:00
parent 465d208b2b
commit 258133cb0e

View File

@ -438,6 +438,7 @@ unsigned SizeOf (const type* T)
case T_INT: case T_INT:
case T_UINT: case T_UINT:
case T_PTR: case T_PTR:
case T_FUNC: /* Maybe pointer to function */
return 2; return 2;
case T_LONG: case T_LONG:
@ -764,7 +765,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 (UnqualifiedType (T[0]) == T_PTR) { if (UnqualifiedType (T[0]) == T_PTR) {
/* Pointer to function */ /* Pointer to function */
++T; ++T;
} }