From b3e788b9d95a9d04fb5f178fde13e73be95e7c04 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 1 Apr 2021 10:56:57 +0100 Subject: Fix missing complex32/quaternion64 checks --- src/check_expr.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/check_expr.cpp') diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 5a1cf138f..411ee58dd 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -1574,6 +1574,7 @@ bool check_representable_as_constant(CheckerContext *c, ExactValue in_value, Typ } switch (type->Basic.kind) { + case Basic_complex32: case Basic_complex64: case Basic_complex128: { ExactValue real = exact_value_real(v); @@ -1599,6 +1600,7 @@ bool check_representable_as_constant(CheckerContext *c, ExactValue in_value, Typ } switch (type->Basic.kind) { + case Basic_quaternion64: case Basic_quaternion128: case Basic_quaternion256: { ExactValue real = exact_value_real(v); -- cgit v1.2.3