diff options
| author | gingerBill <bill@gingerbill.org> | 2018-12-28 11:20:31 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-12-28 11:20:31 +0000 |
| commit | 775f1e2c959e0db488615a44d30be3a59d371b08 (patch) | |
| tree | ad58fbcd772d5b0555aa0459dc4956c28fcc551b /src/check_type.cpp | |
| parent | 7c982b6e109d9e9b4b99c728eea0a3aa5b0849d7 (diff) | |
Fix default parameter assignment checking
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index eb1496bdc..7324e92ca 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1327,7 +1327,7 @@ ParameterValue handle_parameter_value(CheckerContext *ctx, Type *in_type, Type * } if (in_type) { - check_is_assignable_to(ctx, &o, in_type); + check_assignment(ctx, &o, in_type, str_lit("parameter value")); } if (out_type_) *out_type_ = default_type(o.type); |