Minor improvements

This commit is contained in:
gingerBill
2022-07-19 16:17:23 +01:00
parent 7420fbd95b
commit 3db3047f47
2 changed files with 19 additions and 17 deletions
+3 -1
View File
@@ -1345,7 +1345,9 @@ ParameterValue handle_parameter_value(CheckerContext *ctx, Type *in_type, Type *
param_value.kind = ParameterValue_Constant;
param_value.value = o.value;
} else {
error(expr, "Default parameter must be a constant, %d", o.mode);
gbString s = expr_to_string(o.expr);
error(expr, "Default parameter must be a constant, got %s", s);
gb_string_free(s);
}
}
} else {