On Sun, Jan 12, 2014 at 12:44:35PM +0100, David Tardon wrote:
On Sun, Jan 12, 2014 at 10:33:09AM +0000, Rob Kendrick wrote:
> On Sun, Jan 12, 2014 at 09:42:41AM +0100, David Tardon wrote:
> > #include <ctype.h>
> > #include <inttypes.h>
> > #include <stdbool.h>
> > +#include <stdint.h>
> > - printf(" bytecode len:%ld used:%ld\n", e->bclen, e->bcused);
> > + printf(" bytecode len:%" PRIuMAX " used:%" PRIuMAX
> > + (uintmax_t) e->bclen, (uintmax_t) e->bcused);
> The header for these defines is inttypes.h, I thought?
stdint.h is for uintmax_t. This is already included through inttypes.h
on my system, but I am not sure if that is required. Drop the extra
include if you think it is not needed.
I checked and it is indeed specified htat inttypes.h always includes
stdint.h. So there is the patch again with the extra include removed.