Commit 896abfc85fe701b7f7d5166406d86a19726e418f

Edward Thomson 2020-05-12T11:14:10

Merge pull request #5513 from libgit2/pks/tests-fix-32-bit-formatter tests: merge: fix printf formatter on 32 bit arches

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/merge/trees/renames.c b/tests/merge/trees/renames.c
index c515aaf..eef7bc9 100644
--- a/tests/merge/trees/renames.c
+++ b/tests/merge/trees/renames.c
@@ -307,7 +307,7 @@ void test_merge_trees_renames__cache_recomputation(void)
 	 */
 	cl_git_pass(git_treebuilder_new(&builder, repo, NULL));
 	for (i = 0; i < 1000; i++) {
-		cl_git_pass(git_buf_printf(&path, "%"PRIuMAX".txt", i));
+		cl_git_pass(git_buf_printf(&path, "%"PRIuZ".txt", i));
 		cl_git_pass(git_treebuilder_insert(NULL, builder, path.ptr, &blob, GIT_FILEMODE_BLOB));
 		git_buf_clear(&path);
 	}