Commit cca9bea4845c5852b93d4c52a0c6efe20bb3bac2

Vicent Martí 2013-09-05T06:30:08

Merge pull request #1831 from linquize/version.h-warning Fix warning in src/win32/version.h

1
2
3
4
5
6
7
8
9
10
11
12
13
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);