Basile Starynkevitch <basile@starynkevitch.net>

* gengtype.c (walk_type): Emit mark_hook when inside a
          struct of a union member.

From-SVN: r192095
This commit is contained in:
Basile Starynkevitch 2012-10-04 18:18:58 +00:00
parent efb63364c5
commit 226a0af837
1 changed files with 1 additions and 1 deletions

View File

@ -2839,7 +2839,7 @@ walk_type (type_p t, struct walk_type_data *d)
struct_mark_hook = o->info.string;
if (struct_mark_hook)
oprintf (d->of, "%*s%s (&%s));\n",
oprintf (d->of, "%*s%s (&%s);\n",
d->indent, "", struct_mark_hook, oldval);
d->prev_val[2] = oldval;