Skip to content

Commit 896abfc

Browse files
authored
Merge pull request libgit2#5513 from libgit2/pks/tests-fix-32-bit-formatter
tests: merge: fix printf formatter on 32 bit arches
2 parents 51a2bc4 + 0cf9b66 commit 896abfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/merge/trees/renames.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ void test_merge_trees_renames__cache_recomputation(void)
307307
*/
308308
cl_git_pass(git_treebuilder_new(&builder, repo, NULL));
309309
for (i = 0; i < 1000; i++) {
310-
cl_git_pass(git_buf_printf(&path, "%"PRIuMAX".txt", i));
310+
cl_git_pass(git_buf_printf(&path, "%"PRIuZ".txt", i));
311311
cl_git_pass(git_treebuilder_insert(NULL, builder, path.ptr, &blob, GIT_FILEMODE_BLOB));
312312
git_buf_clear(&path);
313313
}

0 commit comments

Comments
 (0)