Re: [PATCH 1/3] commit: shrink "indegree" field

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

 



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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]