Commit d1f011d7 authored by Pieter Hintjens's avatar Pieter Hintjens

Merge pull request #568 from jmgao/patch-2

Fold constant expression into constant.
parents 6caa1737 43d04974
......@@ -64,7 +64,7 @@ size_t zmq::mechanism_t::add_property (unsigned char *ptr, const char *name,
*ptr++ = static_cast <unsigned char> (name_len);
memcpy (ptr, name, name_len);
ptr += name_len;
zmq_assert (value_len <= (2^31) - 1);
zmq_assert (value_len <= 0x7FFFFFFF);
put_uint32 (ptr, static_cast <uint32_t> (value_len));
ptr += 4;
memcpy (ptr, value, value_len);
......
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