Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: basesrc/bin/pax



In article <20011026155845.41BB4B004%cvs.netbsd.org@localhost>,
Luke Mewburn <lukem%netbsd.org@localhost> wrote:
>
>Module Name:   basesrc
>Committed By:  lukem
>Date:          Fri Oct 26 15:58:44 UTC 2001
>
>Modified Files:
>       basesrc/bin/pax: ftree.c
>
>Log Message:
>Cast size_t's to (int) when printing as %d; appeases the sparc port.
>Found by Rob Windsor in [bin/14362].

The politically correct fix is to print with %lu and cast to unsigned long.
size_t is always unsigned [thus the u], and sometimes long.

christos



Home | Main Index | Thread Index | Old Index