fix a bug in the parsing of structures

This commit is contained in:
Bill Currie 2002-07-12 21:43:27 +00:00
parent d80b448281
commit b1b3c148e7

View file

@ -478,7 +478,7 @@ _parse_type (const char **str)
while (**str && **str != '}')
new_struct_field (new.aux_type, _parse_type (str), 0,
vis_public);
if (**str != ')')
if (**str != '}')
return 0;
return new.aux_type;
case '[':