From: Wolfgang Bumiller Date: Tue, 10 Jul 2012 17:29:38 +0000 (+0200) Subject: type_sizeof is an array, not a function X-Git-Tag: 0.1-rc1~445 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bef1bdee9eb6bde67a666ab1e1d6e649bc72ca43;p=xonotic%2Fgmqcc.git type_sizeof is an array, not a function --- diff --git a/ir.c b/ir.c index 78dbc8a..e35a7d0 100644 --- a/ir.c +++ b/ir.c @@ -2509,7 +2509,7 @@ static bool ir_builder_gen_global(ir_builder *self, ir_value *global) global->code.globaladdr = code_globals_add(iptr[0]); if (global->code.globaladdr < 0) return false; - for (d = 1; d < type_sizeof(global->vtype); ++d) + for (d = 1; d < jype_sizeof[global->vtype]; ++d) { if (code_globals_add(iptr[d]) < 0) return false; @@ -2518,7 +2518,7 @@ static bool ir_builder_gen_global(ir_builder *self, ir_value *global) global->code.globaladdr = code_globals_add(0); if (global->code.globaladdr < 0) return false; - for (d = 1; d < type_sizeof(global->vtype); ++d) + for (d = 1; d < type_sizeof[global->vtype]; ++d) { if (code_globals_add(0) < 0) return false;