From: Michael Wallner Date: Wed, 31 Oct 2018 10:10:58 +0000 (+0100) Subject: fix error message X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=b0fdc1f1b8ae5ec4d3f47741b523fa6a60ae32bb;p=m6w6%2Fext-psi fix error message --- diff --git a/src/types/decl_arg.c b/src/types/decl_arg.c index 774d302..9f487c3 100644 --- a/src/types/decl_arg.c +++ b/src/types/decl_arg.c @@ -118,8 +118,10 @@ bool psi_decl_arg_validate(struct psi_data *data, struct psi_decl_arg *arg, if (!psi_decl_type_validate(data, arg->type, NULL, scope)) { if (!arg->var->pointer_level) { data->error(data, arg->type->token, PSI_WARNING, - "Cannot use '%s' as type for '%s'%s%s", arg->type->name, - arg->var->name, *data->last_error ? ": " : "", data->last_error); + "Cannot use '%s' as type for '%s'%s%s", + arg->type->name->val, + arg->var->name->val, + *data->last_error ? ": " : "", data->last_error); return false; } }