Commit b029713ae13bfc9edd08d4d7f9570d7b8e0bb0ec

Calvin Buckley 2021-10-18T23:30:49

Also correct this long long constant I missed this because I searched for digits before ULL, otherwise it would match terms like "null" or "fully".

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/commit_graph.c b/src/commit_graph.c
index 397bee5..82b3901 100644
--- a/src/commit_graph.c
+++ b/src/commit_graph.c
@@ -1079,7 +1079,7 @@ static int commit_graph_write(
 		error = git_str_put(&commit_data, (const char *)&word, sizeof(word));
 		if (error < 0)
 			goto cleanup;
-		word = ntohl((uint32_t)(commit_time & 0xffffffffull));
+		word = ntohl((uint32_t)(commit_time & UINT64_C(0xffffffff)));
 		error = git_str_put(&commit_data, (const char *)&word, sizeof(word));
 		if (error < 0)
 			goto cleanup;