From: Jeff King Date: Tue, 09 Apr 2013 03:52:50 GMT Subject: Re: [PATCH 1/3] commit: shrink "indegree" field 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: > +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