Commit 90c1e2cc authored by Michael Meskes's avatar Michael Meskes

Fixed bug in handling of pointers to structs.

parent 93501745
...@@ -78,7 +78,7 @@ find_struct(char *name, char *next) ...@@ -78,7 +78,7 @@ find_struct(char *name, char *next)
if (c == '-') if (c == '-')
{ {
if (p->type->typ != ECPGt_struct && p->type->typ != ECPGt_union) if (p->type->typ != ECPGt_array)
{ {
sprintf(errortext, "variable %s is not a pointer", name); sprintf(errortext, "variable %s is not a pointer", name);
mmerror(ET_FATAL, errortext); mmerror(ET_FATAL, errortext);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment