From e0d61705b4e0d389e28404d7758f730138b7a90f Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 13 Feb 2011 21:06:06 +0900 Subject: [PATCH] And fix build_struct for built-in struct types. The previous fix broke builtin structs (eg, @param). Calling find_type() for built-in structs has proven to be a bad idea :) --- tools/qfcc/source/struct.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/qfcc/source/struct.c b/tools/qfcc/source/struct.c index 1a6b0cc12..bdcfb872a 100644 --- a/tools/qfcc/source/struct.c +++ b/tools/qfcc/source/struct.c @@ -129,7 +129,8 @@ build_struct (int su, symbol_t *tag, symtab_t *symtab, type_t *type) symtab->size = size; } } - sym->type = find_type (sym->type); // checks the tag, not the symtab + if (!type) + sym->type = find_type (sym->type); // checks the tag, not the symtab sym->type->t.symtab = symtab; return sym; }