summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-09-05 06:30:08 -0700
committerVicent Martí <vicent@github.com>2013-09-05 06:30:08 -0700
commitcca9bea4845c5852b93d4c52a0c6efe20bb3bac2 (patch)
tree052b58fb270a6369accfed9bb77c58cb4469c4ab
parent61d57b7a21b2ac5ca7a763a1b768481926f56014 (diff)
parent21753d48691c41fbedc0c074d8b0f278f3ba2f1d (diff)
downloadlibgit2-cca9bea4845c5852b93d4c52a0c6efe20bb3bac2.tar.gz
Merge pull request #1831 from linquize/version.h-warning
Fix warning in src/win32/version.h
-rw-r--r--src/win32/version.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/version.h b/src/win32/version.h
index 518b0a379..79667697f 100644
--- a/src/win32/version.h
+++ b/src/win32/version.h
@@ -18,7 +18,7 @@ GIT_INLINE(int) git_has_win32_version(int major, int minor, int service_pack)
version_test.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
version_test.dwMajorVersion = major;
version_test.dwMinorVersion = minor;
- version_test.wServicePackMajor = service_pack;
+ version_test.wServicePackMajor = (WORD)service_pack;
version_test.wServicePackMinor = 0;
version_test_mask = (VER_MAJORVERSION | VER_MINORVERSION | VER_SERVICEPACKMAJOR | VER_SERVICEPACKMINOR);