Merge pull request #1831 from linquize/version.h-warning Fix warning in src/win32/version.h
diff --git a/src/win32/version.h b/src/win32/version.h
index 518b0a3..7966769 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);