diff options
author | Calvin Buckley <calvin@cmpct.info> | 2021-07-07 19:35:42 -0300 |
---|---|---|
committer | Calvin Buckley <calvin@cmpct.info> | 2021-07-07 19:35:42 -0300 |
commit | 3f28eafeaf237aa9a3f902388aa632c6d81447de (patch) | |
tree | a57535e888d4520ff73f4be908e4639f4bc8e557 /tests/graph/commit_graph.c | |
parent | 52505ab5a2f0235d73553b6e8ecaa45943d1efc6 (diff) | |
download | libgit2-3f28eafeaf237aa9a3f902388aa632c6d81447de.tar.gz |
stdint constants in test suite
Passes w/ gcc 11 on Fedora x64.
Protip: So you don;t have to suffer,
```
perl -pe 's/(-?(?:0x)?[A-Fa-f0-9]+)([Uu])?[Ll][Ll]/\U$2INT64_C(\E$1)/mg'
```
Diffstat (limited to 'tests/graph/commit_graph.c')
-rw-r--r-- | tests/graph/commit_graph.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/graph/commit_graph.c b/tests/graph/commit_graph.c index 4c7c5a726..ce0894fde 100644 --- a/tests/graph/commit_graph.c +++ b/tests/graph/commit_graph.c @@ -23,14 +23,14 @@ void test_graph_commit_graph__parse(void) cl_git_pass(git_oid_fromstr(&id, "418382dff1ffb8bdfba833f4d8bbcde58b1e7f47")); cl_assert_equal_oid(&e.tree_oid, &id); cl_assert_equal_i(e.generation, 1); - cl_assert_equal_i(e.commit_time, 1273610423ull); + cl_assert_equal_i(e.commit_time, UINT64_C(1273610423)); cl_assert_equal_i(e.parent_count, 0); cl_git_pass(git_oid_fromstr(&id, "be3563ae3f795b2b4353bcce3a527ad0a4f7f644")); cl_git_pass(git_commit_graph_entry_find(&e, cgraph, &id, GIT_OID_HEXSZ)); cl_assert_equal_oid(&e.sha1, &id); cl_assert_equal_i(e.generation, 5); - cl_assert_equal_i(e.commit_time, 1274813907ull); + cl_assert_equal_i(e.commit_time, UINT64_C(1274813907)); cl_assert_equal_i(e.parent_count, 2); cl_git_pass(git_oid_fromstr(&id, "9fd738e8f7967c078dceed8190330fc8648ee56a")); @@ -66,7 +66,7 @@ void test_graph_commit_graph__parse_octopus_merge(void) cl_git_pass(git_oid_fromstr(&id, "348f16ffaeb73f319a75cec5b16a0a47d2d5e27c")); cl_assert_equal_oid(&e.tree_oid, &id); cl_assert_equal_i(e.generation, 7); - cl_assert_equal_i(e.commit_time, 1447083009ull); + cl_assert_equal_i(e.commit_time, INT64_C(1447083009)); cl_assert_equal_i(e.parent_count, 3); cl_git_pass(git_oid_fromstr(&id, "ad2ace9e15f66b3d1138922e6ffdc3ea3f967fa6")); |