summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-11-02 11:47:11 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-11-02 11:47:11 +0000
commit1db1b64e6e43b30c82b898ba704e16d2c0983cc9 (patch)
tree630bbed3b7fda393c32a5d8cca36e06d1f014d8a /llvm/lib/System
parent72cf861fba8b965edc88a2335e2cb7c25a38bf2c (diff)
downloadbcm5719-llvm-1db1b64e6e43b30c82b898ba704e16d2c0983cc9.tar.gz
bcm5719-llvm-1db1b64e6e43b30c82b898ba704e16d2c0983cc9.zip
Silence a warning
llvm-svn: 58563
Diffstat (limited to 'llvm/lib/System')
-rw-r--r--llvm/lib/System/Win32/Host.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/System/Win32/Host.inc b/llvm/lib/System/Win32/Host.inc
index f105b38f83a..7bbf2bd346e 100644
--- a/llvm/lib/System/Win32/Host.inc
+++ b/llvm/lib/System/Win32/Host.inc
@@ -22,14 +22,16 @@ std::string sys::osName() {
}
std::string sys::osVersion() {
- OSVERSIONINFO osvi = { 0 };
+ OSVERSIONINFO osvi;
+
+ memset(&osvi, 0, sizeof(osvi));
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
if (!GetVersionEx(&osvi))
return "";
-
+
char buf[64];
- sprintf(buf, "%d.%d", osvi.dwMajorVersion, osvi.dwMinorVersion);
+ sprintf(buf, "%d.%d", (int)osvi.dwMajorVersion, (int)osvi.dwMinorVersion);
- return buf;
+ return buf;
}
OpenPOWER on IntegriCloud