Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72271 - branches/release/boost/uuid
From: atompkins_at_[hidden]
Date: 2011-05-29 20:39:05


Author: atompkins
Date: 2011-05-29 20:39:05 EDT (Sun, 29 May 2011)
New Revision: 72271
URL: http://svn.boost.org/trac/boost/changeset/72271

Log:
Ticket #4601
Text files modified:
   branches/release/boost/uuid/random_generator.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: branches/release/boost/uuid/random_generator.hpp
==============================================================================
--- branches/release/boost/uuid/random_generator.hpp (original)
+++ branches/release/boost/uuid/random_generator.hpp 2011-05-29 20:39:05 EDT (Sun, 29 May 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