summaryrefslogtreecommitdiff
path: root/tests-clar/diff/patch.c
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2013-02-05 16:52:56 +0100
committernulltoken <emeric.fermas@gmail.com>2013-02-05 20:33:27 +0100
commit3ad052218cd03fe58b254f878825e3f0fd4b3054 (patch)
tree7b8f59dd9f12a3be9ea8daff291fcfeb03f4592e /tests-clar/diff/patch.c
parentd96aa8a9ca74a40502d86de4c36e0a54b1ed1dc7 (diff)
downloadlibgit2-3ad052218cd03fe58b254f878825e3f0fd4b3054.tar.gz
Fix MSVC compilation warnings
Fix #1308
Diffstat (limited to 'tests-clar/diff/patch.c')
-rw-r--r--tests-clar/diff/patch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests-clar/diff/patch.c b/tests-clar/diff/patch.c
index affa761de..18e90f92d 100644
--- a/tests-clar/diff/patch.c
+++ b/tests-clar/diff/patch.c
@@ -251,13 +251,13 @@ static void check_single_patch_stats(
cl_git_pass(git_diff_get_patch(&patch, &delta, diff, 0));
cl_assert_equal_i(GIT_DELTA_MODIFIED, (int)delta->status);
- cl_assert_equal_i(hunks, (int)git_diff_patch_num_hunks(patch));
+ cl_assert_equal_sz(hunks, git_diff_patch_num_hunks(patch));
cl_git_pass(
git_diff_patch_line_stats(NULL, &actual_adds, &actual_dels, patch));
- cl_assert_equal_i(adds, actual_adds);
- cl_assert_equal_i(dels, actual_dels);
+ cl_assert_equal_sz(adds, actual_adds);
+ cl_assert_equal_sz(dels, actual_dels);
git_diff_patch_free(patch);
git_diff_list_free(diff);