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