Re: [RFC/PATCH] fast-import: Fix compile warnings
- From
Junio C Hamano <junkio@cox.net>
- Date
- Feb 7, 2007, 17:24 UTC
- Message-ID
- <7vzm7p7uf9.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.63.0702071237360.22628@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> Not on all platforms are size_t and unsigned long equivalent. > Since I do not know how portable %z is, I play safe, and just > cast the respective variables to unsigned long.
The format "%s %lu" is consistent with what write_sha1_file_prepare() and unpack_sha1_header() uses, so that should be safe enough.
However, your patch does not apply.