mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
[qfcc] Use right object for sizeof
Since the bitfield has been abandoned, can use sizeof on the field again.
This commit is contained in:
parent
ac9f3404ef
commit
54a9305dbf
1 changed files with 1 additions and 2 deletions
|
@ -151,8 +151,7 @@ qfo_encode_basic (type_t *type)
|
||||||
else if (type->type == ev_pointer || type->type == ev_field)
|
else if (type->type == ev_pointer || type->type == ev_field)
|
||||||
return qfo_encode_fldptr (type);
|
return qfo_encode_fldptr (type);
|
||||||
|
|
||||||
// can't use sizeof on enc->t.type, but pr_uint_t is the backing type
|
def = qfo_new_encoding (type, sizeof (enc->t.type));
|
||||||
def = qfo_new_encoding (type, sizeof (pr_uint_t));
|
|
||||||
enc = D_POINTER (qfot_type_t, def);
|
enc = D_POINTER (qfot_type_t, def);
|
||||||
enc->t.type = type->type;
|
enc->t.type = type->type;
|
||||||
return def;
|
return def;
|
||||||
|
|
Loading…
Reference in a new issue