From: Robert Pengelly Date: Thu, 21 May 2026 16:40:48 +0000 (+0100) Subject: Switch to double if long preceeds it X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=995ae8355cd96a9842a928d771c698df5ce6fe40;p=scc.git Switch to double if long preceeds it --- diff --git a/parse.c b/parse.c index 199e2ee..a3200bd 100644 --- a/parse.c +++ b/parse.c @@ -6857,7 +6857,12 @@ static void parse_type_spec (void) { } else if (tok.kind == TOK_DOUBLE) { - if (parsed_type_size == DATA_DOUBLE) { + if (parsed_type_size == DATA_LONG) { + + parsed_type_size = DATA_DOUBLE; + saw_double = 1; + + } else if (parsed_type_size == DATA_DOUBLE) { report_line_at (get_filename (), get_line_number (), REPORT_ERROR, tok.start, tok.caret, "duplicate 'double'"); } else if (parsed_type_size != DATA_NONE) { report_line_at (get_filename (), get_line_number (), REPORT_ERROR, tok.start, tok.caret, "multiple data types in declaration specifiers");