Kaydet (Commit) 185fe1de authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: use of logical '&&' with constant operand

Thanks, Clang. The code was indeed (obviously) wrong.

Is fixed in upstream boost:
https://svn.boost.org/trac/boost/changeset/72270
https://svn.boost.org/trac/boost/ticket/5145

Change-Id: I5efbb60a8518e387785f2fb65cd821f1938534cc
üst 65f82ca6
......@@ -80,3 +80,21 @@
template<class Token, class Value>
static void plus_equal(Token &t, const Value &v) {
t += v;
--- misc/boost_1_44_0/boost/uuid/name_generator.hpp
+++ misc/build/boost_1_44_0/boost/uuid/name_generator.hpp
@@ -72,10 +72,10 @@
for (size_t i=0; i<count; i++) {
uint32_t c = characters[i];
- sha.process_byte( (c >> 0) && 0xFF );
- sha.process_byte( (c >> 8) && 0xFF );
- sha.process_byte( (c >> 16) && 0xFF );
- sha.process_byte( (c >> 24) && 0xFF );
+ sha.process_byte( (c >> 0) & 0xFF );
+ sha.process_byte( (c >> 8) & 0xFF );
+ sha.process_byte( (c >> 16) & 0xFF );
+ sha.process_byte( (c >> 24) & 0xFF );
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment