Thread (8 messages) flat view 8 messages, 2 authors, 2016-06-15

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

From: Jeff King <hidden>
Date: 2016-06-15 22:56:44

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help