diff options
author | Scott J. Goldman <scottjgo@gmail.com> | 2012-05-05 13:54:33 -0700 |
---|---|---|
committer | Scott J. Goldman <scottjgo@gmail.com> | 2012-05-05 13:54:33 -0700 |
commit | 35cdd261f353696181236328323e8d123cad57d4 (patch) | |
tree | 325d20e5cd5a8799926e32ed11d25034537bf52f | |
parent | b47e0a71718823338686b49614f7c7536265d3a8 (diff) | |
download | libgit2-35cdd261f353696181236328323e8d123cad57d4.tar.gz |
Fix unsigned/signed comparison on Windows in commitstagedfile.c
-rw-r--r-- | tests-clar/object/commit/commitstagedfile.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests-clar/object/commit/commitstagedfile.c b/tests-clar/object/commit/commitstagedfile.c index de69b4496..cd04e96d4 100644 --- a/tests-clar/object/commit/commitstagedfile.c +++ b/tests-clar/object/commit/commitstagedfile.c @@ -83,8 +83,16 @@ void test_object_commit_commitstagedfile__generate_predictable_object_ids(void) struct stat st; cl_must_pass(p_lstat("treebuilder/test.txt", &st)); cl_assert(entry->file_size == st.st_size); +#ifndef _WIN32 + /* + * Windows doesn't populate these fields, and the signage is + * wrong in the Windows version of the struct, so lets avoid + * the "comparing signed and unsigned" compilation warning in + * that case. + */ cl_assert(entry->uid == st.st_uid); cl_assert(entry->gid == st.st_gid); +#endif } /* |