Fixed bug in handling of pointers to structs.

This commit is contained in:
Michael Meskes 2001-03-16 13:05:57 +00:00
parent 935017457b
commit 90c1e2cc43

View file

@ -78,7 +78,7 @@ find_struct(char *name, char *next)
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);
mmerror(ET_FATAL, errortext);