From 829fb33e92e2b3d2b017a17f79fe9ca48af53fba Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 7 Feb 2011 10:10:48 +0900 Subject: [PATCH] Fix converting nil to a pointer type. --- tools/qfcc/source/expr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c index 30d498261..9f367a5aa 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -1120,6 +1120,8 @@ convert_nil (expr_t *e, type_t *t) { memset (&e->e.value, 0, sizeof (e->e.value)); e->e.value.type = t->type; + if (t->type == ev_pointer) + e->e.value.v.pointer.type = t->t.fldptr.type; e->type = ex_value; }