0
0
Fork 0
mirror of https://git.code.sf.net/p/quake/quakeforge synced 2025-04-24 10:31:35 +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:
Bill Currie 2011-02-14 12:59:04 +09:00
parent 6b29568fa9
commit e10d561459

View file

@ -99,8 +99,12 @@ low_level_type (type_t *type)
return type->type;
if (is_enum (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;
}
if (is_array (type))
return ev_void;
internal_error (0, "invalid complex type");