|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r62638 - trunk/libs/thread/src/win32
From: anthony_at_[hidden]
Date: 2010-06-09 03:46:32
Author: anthonyw
Date: 2010-06-09 03:46:29 EDT (Wed, 09 Jun 2010)
New Revision: 62638
URL: http://svn.boost.org/trac/boost/changeset/62638
Log:
Add extra braces to fix issue #4321
Text files modified:
trunk/libs/thread/src/win32/thread.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/libs/thread/src/win32/thread.cpp
==============================================================================
--- trunk/libs/thread/src/win32/thread.cpp (original)
+++ trunk/libs/thread/src/win32/thread.cpp 2010-06-09 03:46:29 EDT (Wed, 09 Jun 2010)
@@ -304,7 +304,7 @@
unsigned thread::hardware_concurrency()
{
- SYSTEM_INFO info={0};
+ SYSTEM_INFO info={{0}};
GetSystemInfo(&info);
return info.dwNumberOfProcessors;
}
@@ -327,7 +327,7 @@
{
LARGE_INTEGER get_due_time(detail::timeout const& target_time)
{
- LARGE_INTEGER due_time={0};
+ LARGE_INTEGER due_time={{0}};
if(target_time.relative)
{
unsigned long const elapsed_milliseconds=GetTickCount()-target_time.start;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk