From 258133cb0ee339007e31d4d117e259564d4753db Mon Sep 17 00:00:00 2001 From: cuz Date: Mon, 12 Nov 2001 14:20:56 +0000 Subject: [PATCH] Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@1112 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/datatype.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cc65/datatype.c b/src/cc65/datatype.c index 1bc0c74af..9d974e67f 100644 --- a/src/cc65/datatype.c +++ b/src/cc65/datatype.c @@ -438,6 +438,7 @@ unsigned SizeOf (const type* T) case T_INT: case T_UINT: case T_PTR: + case T_FUNC: /* Maybe pointer to function */ return 2; case T_LONG: @@ -764,7 +765,7 @@ type GetQualifier (const type* T) FuncDesc* GetFuncDesc (const type* T) /* 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 */ ++T; } -- 2.39.5