mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 14:21:36 +00:00
use type_sizeof in another place where it wasn't
This commit is contained in:
parent
a4617d0e61
commit
9c2c62e82b
1 changed files with 3 additions and 2 deletions
5
ir.c
5
ir.c
|
@ -2371,6 +2371,7 @@ static bool gen_global_function(ir_builder *ir, ir_value *global)
|
|||
|
||||
static bool ir_builder_gen_global(ir_builder *self, ir_value *global)
|
||||
{
|
||||
size_t i;
|
||||
int32_t *iptr;
|
||||
prog_section_def def;
|
||||
|
||||
|
@ -2450,8 +2451,8 @@ static bool ir_builder_gen_global(ir_builder *self, ir_value *global)
|
|||
case TYPE_VARIANT:
|
||||
/* assume biggest type */
|
||||
global->code.globaladdr = code_globals_add(0);
|
||||
code_globals_add(0);
|
||||
code_globals_add(0);
|
||||
for (i = 1; i < type_sizeof[TYPE_VARIANT]; ++i)
|
||||
code_globals_add(0);
|
||||
return true;
|
||||
default:
|
||||
/* refuse to create 'void' type or any other fancy business. */
|
||||
|
|
Loading…
Reference in a new issue