We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a89db0e commit cb6240bCopy full SHA for cb6240b
src/commit_graph.c
@@ -1075,7 +1075,7 @@ static int commit_graph_write(
1075
commit_time = (uint64_t)packed_commit->commit_time;
1076
if (generation > GIT_COMMIT_GRAPH_GENERATION_NUMBER_MAX)
1077
generation = GIT_COMMIT_GRAPH_GENERATION_NUMBER_MAX;
1078
- word = ntohl((uint32_t)((generation << 2) | ((commit_time >> 32ull) & 0x3ull)));
+ word = ntohl((uint32_t)((generation << 2) | ((commit_time >> UINT64_C(32)) & UINT64_C(0x3))));
1079
error = git_str_put(&commit_data, (const char *)&word, sizeof(word));
1080
if (error < 0)
1081
goto cleanup;
0 commit comments