mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-30 15:41:12 +00:00
type_sizeof is an array, not a function
This commit is contained in:
parent
e9ac1c9e21
commit
bef1bdee9e
1 changed files with 2 additions and 2 deletions
4
ir.c
4
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;
|
||||
|
|
Loading…
Reference in a new issue