From a0d74876b8da7eb4311c700c4d66928aee8a3ef1 Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 5 Feb 1993 18:15:32 +0000 Subject: [PATCH] Fixed bit-field initializers bug --- lang/cem/cemcom/ival.g | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lang/cem/cemcom/ival.g b/lang/cem/cemcom/ival.g index f9b3d1bd6..89de03283 100644 --- a/lang/cem/cemcom/ival.g +++ b/lang/cem/cemcom/ival.g @@ -191,11 +191,9 @@ next_field(sd, p) { if (sd->sd_sdef) p->bytes_upto_here += zero_bytes(sd); - if (p->last_offset != sd->sd_offset) { - p->bytes_upto_here += - size_of_type(sd->sd_type, "selector"); - p->last_offset = sd->sd_offset; - } + p->bytes_upto_here += + size_of_type(sd->sd_type, "selector"); + p->last_offset = sd->sd_offset; return sd->sd_sdef; }