projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
fix build & tests
[m6w6/ext-psi]
/
src
/
context_validate.c
diff --git
a/src/context_validate.c
b/src/context_validate.c
index cf0695f0138ca19c34c9fd21088dd296295e7d46..45e2d987efba15185e435cae228ae99b3fef9d3d 100644
(file)
--- a/
src/context_validate.c
+++ b/
src/context_validate.c
@@
-154,6
+154,9
@@
static inline int validate_decl_typedef(PSI_Data *data, decl_arg *def) {
def->var->name);
return 0;
}
+ if (def->type->type == PSI_T_VOID && def->var->pointer_level) {
+ def->type->type = PSI_T_POINTER;
+ }
return 1;
}