mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 08:00:51 +00:00
Treat small structs as integers (disabled).
This is more to stash away a potential optimization. I need to fix the real problem first.
This commit is contained in:
parent
6b29568fa9
commit
e10d561459
1 changed files with 5 additions and 1 deletions
|
@ -99,8 +99,12 @@ low_level_type (type_t *type)
|
||||||
return type->type;
|
return type->type;
|
||||||
if (is_enum (type))
|
if (is_enum (type))
|
||||||
return type_default->type;
|
return type_default->type;
|
||||||
if (is_struct (type) || is_class (type))
|
if (is_struct (type) || is_class (type)) {
|
||||||
|
//FIXME enable later when the real bug is fixed
|
||||||
|
//if (type_size (type) == 1)
|
||||||
|
// return ev_integer;
|
||||||
return ev_void;
|
return ev_void;
|
||||||
|
}
|
||||||
if (is_array (type))
|
if (is_array (type))
|
||||||
return ev_void;
|
return ev_void;
|
||||||
internal_error (0, "invalid complex type");
|
internal_error (0, "invalid complex type");
|
||||||
|
|
Loading…
Reference in a new issue