|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r69590 - trunk/boost/uuid
From: atompkins_at_[hidden]
Date: 2011-03-05 18:41:47
Author: atompkins
Date: 2011-03-05 18:41:46 EST (Sat, 05 Mar 2011)
New Revision: 69590
URL: http://svn.boost.org/trac/boost/changeset/69590
Log:
got rid of a compiler warning. ticket #4601
Text files modified:
trunk/boost/uuid/random_generator.hpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: trunk/boost/uuid/random_generator.hpp
==============================================================================
--- trunk/boost/uuid/random_generator.hpp (original)
+++ trunk/boost/uuid/random_generator.hpp 2011-03-05 18:41:46 EST (Sat, 05 Mar 2011)
@@ -90,7 +90,8 @@
i = 0;
}
- *it = ((random_value >> (i*8)) & 0xFF);
+ // static_cast gets rid of warnings of converting unsigned long to boost::uint8_t
+ *it = static_cast<uuid::value_type>((random_value >> (i*8)) & 0xFF);
}
// set variant
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