Skip to content

Commit

Permalink
Type: allow double long and _Complex double long
Browse files Browse the repository at this point in the history
Fixes #736
  • Loading branch information
ehaas committed Aug 1, 2024
1 parent 8ab72a4 commit 39af18a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aro/Type.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2091,6 +2091,7 @@ pub const Builder = struct {
},
.long => b.specifier = switch (b.specifier) {
.none => .long,
.double => .long_double,
.long => .long_long,
.unsigned => .ulong,
.signed => .long,
Expand All @@ -2103,6 +2104,7 @@ pub const Builder = struct {
.complex_long => .complex_long_long,
.complex_slong => .complex_slong_long,
.complex_ulong => .complex_ulong_long,
.complex_double => .complex_long_double,
else => return b.cannotCombine(p, source_tok),
},
.int128 => b.specifier = switch (b.specifier) {
Expand Down
2 changes: 2 additions & 0 deletions test/cases/double long.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
_Complex double long x;
double long y;

0 comments on commit 39af18a

Please sign in to comment.