X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=boost%2Fuuid%2Fname_generator.hpp;h=2e5d8c16d8e0da7d552b0d6f0132f748edfbd336;hb=08c1e93fa36a49f49325a07fe91ff92c964c2b6c;hp=fe582b45839ab43dca7061a8137d5e6a17a27412;hpb=bb4dd8289b351fae6b55e303f189127a394a1edd;p=platform%2Fupstream%2Fboost.git diff --git a/boost/uuid/name_generator.hpp b/boost/uuid/name_generator.hpp index fe582b4..2e5d8c1 100644 --- a/boost/uuid/name_generator.hpp +++ b/boost/uuid/name_generator.hpp @@ -30,8 +30,8 @@ class name_generator { public: typedef uuid result_type; - explicit name_generator(uuid const& namespace_uuid) - : namespace_uuid(namespace_uuid) + explicit name_generator(uuid const& namespace_uuid_) + : namespace_uuid(namespace_uuid_) {} uuid operator()(const char* name) { @@ -71,10 +71,10 @@ private: for (size_t i=0; i> 0) & 0xFF ); - sha.process_byte( (c >> 8) & 0xFF ); - sha.process_byte( (c >> 16) & 0xFF ); - sha.process_byte( (c >> 24) & 0xFF ); + sha.process_byte(static_cast((c >> 0) & 0xFF)); + sha.process_byte(static_cast((c >> 8) & 0xFF)); + sha.process_byte(static_cast((c >> 16) & 0xFF)); + sha.process_byte(static_cast((c >> 24) & 0xFF)); } } @@ -96,10 +96,10 @@ private: uuid u; for (int i=0; i<4; ++i) { - *(u.begin() + i*4+0) = ((digest[i] >> 24) & 0xFF); - *(u.begin() + i*4+1) = ((digest[i] >> 16) & 0xFF); - *(u.begin() + i*4+2) = ((digest[i] >> 8) & 0xFF); - *(u.begin() + i*4+3) = ((digest[i] >> 0) & 0xFF); + *(u.begin() + i*4+0) = static_cast((digest[i] >> 24) & 0xFF); + *(u.begin() + i*4+1) = static_cast((digest[i] >> 16) & 0xFF); + *(u.begin() + i*4+2) = static_cast((digest[i] >> 8) & 0xFF); + *(u.begin() + i*4+3) = static_cast((digest[i] >> 0) & 0xFF); } // set variant