Fixed bug in handling of pointers to structs.

REL7_1_STABLE
Michael Meskes 25 years ago
parent 935017457b
commit 90c1e2cc43
  1. 2
      src/interfaces/ecpg/preproc/variable.c

@ -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);

Loading…
Cancel
Save