Fix missing complex32/quaternion64 checks

This commit is contained in:
gingerBill
2021-04-01 10:56:57 +01:00
parent 63bb26c0e0
commit b3e788b9d9
2 changed files with 5 additions and 1 deletions

View File

@@ -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);