[qfcc] Use right object for sizeof

Since the bitfield has been abandoned, can use sizeof on the field
again.
This commit is contained in:
Bill Currie 2020-03-28 22:02:42 +09:00
parent ac9f3404ef
commit 54a9305dbf

View file

@ -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;