summaryrefslogtreecommitdiff
path: root/src/win32
diff options
context:
space:
mode:
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);