Re: [PATCH 1/3] commit: shrink "indegree" field
- From
Jeff King <peff@peff.net>
- Date
- Apr 9, 2013, 03:52 UTC
- Message-ID
- <20130409035250.GB17319@sigill.intra.peff.net>
- In-Reply-To
- <1365462114-8630-2-git-send-email-gitster@pobox.com>
On Mon, Apr 08, 2013 at 04:01:52PM -0700, Junio C Hamano wrote:
Show 10 quoted lines
> +static inline intptr_t get_indegree(struct decoration *indegree,
> + struct commit *commit)
> +{
> + if (commit->indegree < QUICK_INDEGREE_LIMIT)
> + return commit->indegree;
> + else {
> + void *count = lookup_decoration(indegree, &commit->object);
> + return (int) count;
> + }
> +}Should that cast be to intptr_t?
-Peff