From 2254afb2f533d5dfa0dd32b57fbf07258152d421 Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Sun, 27 Mar 2011 19:19:47 +0430 Subject: [PATCH] ncc: dereference function pointers like any other variables --- ncc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ncc.c b/ncc.c index 5da7497..5321a3f 100644 --- a/ncc.c +++ b/ncc.c @@ -288,7 +288,7 @@ static void ts_pop_de(struct type *t) t = &de; ts_pop(t); array2ptr(t); - if (t->addr && !(t->flags & T_FUNC)) + if (t->addr && (t->ptr || !(t->flags & T_FUNC))) o_deref(TYPE_BT(t)); t->addr = 0; } -- 2.11.4.GIT