summaryrefslogtreecommitdiff
path: root/src/commit_graph.c
diff options
context:
space:
mode:
authorCalvin Buckley <calvin@cmpct.info>2021-07-07 19:12:02 -0300
committerCalvin Buckley <calvin@cmpct.info>2021-07-07 19:12:02 -0300
commit52505ab5a2f0235d73553b6e8ecaa45943d1efc6 (patch)
treeb4c6f5f4883cce7c68dd5d9201e6b22e075b35e8 /src/commit_graph.c
parentc1aca3fedaf2cfe6d9bc7f5dbf5828a872dd74e5 (diff)
downloadlibgit2-52505ab5a2f0235d73553b6e8ecaa45943d1efc6.tar.gz
Convert long long constant specifiers to stdint macros
Diffstat (limited to 'src/commit_graph.c')
-rw-r--r--src/commit_graph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit_graph.c b/src/commit_graph.c
index b301d3d49..70b5b8c5f 100644
--- a/src/commit_graph.c
+++ b/src/commit_graph.c
@@ -304,7 +304,7 @@ static int git_commit_graph_entry_get_byindex(
e->generation = ntohl(*((uint32_t *)(commit_data + GIT_OID_RAWSZ + 2 * sizeof(uint32_t))));
e->commit_time = ntohl(*((uint32_t *)(commit_data + GIT_OID_RAWSZ + 3 * sizeof(uint32_t))));
- e->commit_time |= (e->generation & 0x3ull) << 32ull;
+ e->commit_time |= (e->generation & UINT64_C(0x3)) << UINT64_C(32);
e->generation >>= 2u;
if (e->parent_indices[1] & 0x80000000u) {
uint32_t extra_edge_list_pos = e->parent_indices[1] & 0x7fffffff;