summaryrefslogtreecommitdiff
path: root/src/win32
diff options
context:
space:
mode:
authorLinquize <linquize@yahoo.com.hk>2013-09-05 20:42:47 +0800
committerLinquize <linquize@yahoo.com.hk>2013-09-05 20:42:47 +0800
commit21753d48691c41fbedc0c074d8b0f278f3ba2f1d (patch)
tree9aa1024104b14d69cc5c7a456ff119456fdee22b /src/win32
parent6700cb9925741211910e592be58fa3b8b99f48ec (diff)
downloadlibgit2-21753d48691c41fbedc0c074d8b0f278f3ba2f1d.tar.gz
Fix warning in src/win32/version.h
Diffstat (limited to 'src/win32')
-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);