Re: [RFA, 3 of 3] save/restore process record, part 3 (save/restore)

Eli Zaretskii
2009-10-23T14:55:04Z

> X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,
> FORGED_RCVD_HELO autolearn=ham version=3.1.0
> From: Andreas Schwab <schwab@redhat.com>
> Cc: Pierre Muller <muller@ics.u-strasbg.fr>, ppluzhnikov@google.com,
> msnyder@vmware.com, teawater@gmail.com, gdb-patches@sourceware.org
> Date: Fri, 23 Oct 2009 16:46:18 +0200
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > sizeof returns a value of the type `size_t'. On a 64-bit host, size_t
> > is typically a 64-bit data type, and so is `unsigned long'.
>
> Even though the sizeof return value has type size_t it still may fit in
> an int (and most of the time it does).

That's true, but printf will still complain, unless we cast
explicitly.