diff options
| author | gingerBill <bill@gingerbill.org> | 2022-06-24 15:12:15 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-06-24 15:12:15 +0100 |
| commit | f8744d87b02f1db75010eb9856bdad9d31fa7b45 (patch) | |
| tree | f29e039f02cf0c8e43bfc33efe6afca00dd3737a /src | |
| parent | 3e7f6b87512dc149b25d2b7a81cb62e6a0b7ccc8 (diff) | |
Add shorthand flag to `determine_type_from_polymorphic`
Diffstat (limited to 'src')
| -rw-r--r-- | src/check_type.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index fc5b7aed7..bc89a9be9 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1240,7 +1240,7 @@ Type *determine_type_from_polymorphic(CheckerContext *ctx, Type *poly_type, Oper if (!is_operand_value(operand)) { if (show_error) { gbString pts = type_to_string(poly_type); - gbString ots = type_to_string(operand.type); + gbString ots = type_to_string(operand.type, true); defer (gb_string_free(pts)); defer (gb_string_free(ots)); error(operand.expr, "Cannot determine polymorphic type from parameter: '%s' to '%s'", ots, pts); @@ -1253,7 +1253,7 @@ Type *determine_type_from_polymorphic(CheckerContext *ctx, Type *poly_type, Oper } if (show_error) { gbString pts = type_to_string(poly_type); - gbString ots = type_to_string(operand.type); + gbString ots = type_to_string(operand.type, true); defer (gb_string_free(pts)); defer (gb_string_free(ots)); error(operand.expr, "Cannot determine polymorphic type from parameter: '%s' to '%s'", ots, pts); |