Re: RFA: shrink main_type

Daniel Jacobowitz
2008-08-18T22:32:54Z

On Tue, Aug 19, 2008 at 12:17:01AM +0200, Andreas Schwab wrote:
> Tom Tromey <tromey@redhat.com> writes:
>
> > + /* Copy the common fields of types. For the main type, we simply
> > + copy the entire thing and then update specific fields as needed. */
> > + memcpy (TYPE_MAIN_TYPE (new_type), TYPE_MAIN_TYPE (type),
> > + sizeof (struct main_type));
>
> IMHO this should be written as an assignment.

I think it's equally clear this way...

--
Daniel Jacobowitz
CodeSourcery