Re: [PATCH] read_cache: cast types from stat to ce_cache
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 10, 2010, 15:54 UTC
- Message-ID
- <7vmxv2nar5.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <a06cc84698f174d914350d6fd6e6b4739d22aa45.1276161176.git.git@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 10 quoted lines
> - ce->ce_dev = st->st_dev; > - ce->ce_ino = st->st_ino; > - ce->ce_uid = st->st_uid; > - ce->ce_gid = st->st_gid; > - ce->ce_size = st->st_size; > + ce->ce_dev = (unsigned int)st->st_dev; > + ce->ce_ino = (unsigned int)st->st_ino; > + ce->ce_uid = (unsigned int)st->st_uid; > + ce->ce_gid = (unsigned int)st->st_gid; > + ce->ce_size = (unsigned int)st->st_size;
I haven't had my morning coffee yet, but wouldn't the conversion be automatic by assignment anyway?