From 5252d72856b4dfb078371e3dbafd17e07bfb4fd7 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 15 Feb 2011 12:09:39 +0900 Subject: [PATCH] Correct the type for _OBJ_SELECTOR_TABLE. --- tools/qfcc/source/expr.c | 3 ++- tools/qfcc/source/method.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c index 73c20c200..8ce0f6384 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -2515,7 +2515,8 @@ selector_expr (keywordarg_t *selector) pr.near_data, st_static); if (!sel_sym->table) { symtab_addsymbol (pr.symtab, sel_sym); - sel_table = make_symbol ("_OBJ_SELECTOR_TABLE", type_SEL.t.fldptr.type, + sel_table = make_symbol ("_OBJ_SELECTOR_TABLE", + array_type (type_SEL.t.fldptr.type, 0), pr.far_data, st_extern); if (!sel_table->table) symtab_addsymbol (pr.symtab, sel_table); diff --git a/tools/qfcc/source/method.c b/tools/qfcc/source/method.c index 62d5f8451..59e844abf 100644 --- a/tools/qfcc/source/method.c +++ b/tools/qfcc/source/method.c @@ -390,7 +390,7 @@ emit_selectors (void) return 0; sel_type = array_type (type_SEL.t.fldptr.type, sel_index); - sel_sym = make_symbol ("_OBJ_SELECTOR_TABLE", type_SEL.t.fldptr.type, + sel_sym = make_symbol ("_OBJ_SELECTOR_TABLE", sel_type, pr.far_data, st_static); if (!sel_sym->table) symtab_addsymbol (pr.symtab, sel_sym);