From 9c64294186f029f1e24159f6ef926695033e6e78 Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 21 Jan 1993 11:00:51 +0000 Subject: [PATCH] Fixed bit-field initializers bug --- lang/cem/cemcom.ansi/ival.g | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lang/cem/cemcom.ansi/ival.g b/lang/cem/cemcom.ansi/ival.g index c7414455d..05b2c42d8 100644 --- a/lang/cem/cemcom.ansi/ival.g +++ b/lang/cem/cemcom.ansi/ival.g @@ -200,11 +200,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; }