|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r75068 - trunk/boost/uuid
From: atompkins_at_[hidden]
Date: 2011-10-19 19:39:38
Author: atompkins
Date: 2011-10-19 19:39:37 EDT (Wed, 19 Oct 2011)
New Revision: 75068
URL: http://svn.boost.org/trac/boost/changeset/75068
Log:
fixed compiler bug when using c++X0
Text files modified:
trunk/boost/uuid/seed_rng.hpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
Modified: trunk/boost/uuid/seed_rng.hpp
==============================================================================
--- trunk/boost/uuid/seed_rng.hpp (original)
+++ trunk/boost/uuid/seed_rng.hpp 2011-10-19 19:39:37 EDT (Wed, 19 Oct 2011)
@@ -139,7 +139,11 @@
}
{
- unsigned int rn[] = { std::rand(), std::rand(), std::rand() };
+ unsigned int rn[] =
+ { static_cast<unsigned int>(std::rand())
+ , static_cast<unsigned int>(std::rand())
+ , static_cast<unsigned int>(std::rand())
+ };
sha.process_bytes( (unsigned char const*)rn, sizeof( rn ) );
}
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