diff options
author | Calvin Buckley <calvin@cmpct.info> | 2021-10-17 23:36:56 -0300 |
---|---|---|
committer | Calvin Buckley <calvin@cmpct.info> | 2021-10-17 23:36:56 -0300 |
commit | cb6240bc751f78abfcc24de2339bc49b6aeefa87 (patch) | |
tree | 6d8a43337aa677f349ab3ec6dbfd3e84445e81eb | |
parent | a89db0e7fe54e9ce0ac503802e083ae8c0b872d6 (diff) | |
download | libgit2-cb6240bc751f78abfcc24de2339bc49b6aeefa87.tar.gz |
Fix a long long that crept past
-rw-r--r-- | src/commit_graph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit_graph.c b/src/commit_graph.c index f9a4bd2b2..397bee5e2 100644 --- a/src/commit_graph.c +++ b/src/commit_graph.c @@ -1075,7 +1075,7 @@ static int commit_graph_write( commit_time = (uint64_t)packed_commit->commit_time; if (generation > GIT_COMMIT_GRAPH_GENERATION_NUMBER_MAX) generation = GIT_COMMIT_GRAPH_GENERATION_NUMBER_MAX; - word = ntohl((uint32_t)((generation << 2) | ((commit_time >> 32ull) & 0x3ull))); + word = ntohl((uint32_t)((generation << 2) | ((commit_time >> UINT64_C(32)) & UINT64_C(0x3)))); error = git_str_put(&commit_data, (const char *)&word, sizeof(word)); if (error < 0) goto cleanup; |