Fix MSVC compile warning C4800 for bitwise operation resulting in int to boolean assignment.
Fix MSVC compile warning C4244 possible loss of data. Possible data loss from uint64_t to uint32_t.
This commit is contained in:
parent
d0a56f4235
commit
1479922901
|
|
@ -45,7 +45,7 @@ using DeleteCallback = std::function<void(uint32_t deletedmessages)>;
|
||||||
* When retrieving the size of a queue in some way
|
* When retrieving the size of a queue in some way
|
||||||
*/
|
*/
|
||||||
using EmptyCallback = std::function<void()>;
|
using EmptyCallback = std::function<void()>;
|
||||||
using SizeCallback = std::function<void(uint32_t messagecount)>;
|
using SizeCallback = std::function<void(uint64_t messagecount)>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Starting and stopping a consumer
|
* Starting and stopping a consumer
|
||||||
|
|
|
||||||
|
|
@ -261,11 +261,11 @@ Deferred &ChannelImpl::declareExchange(const std::string &name, ExchangeType typ
|
||||||
else if (type == ExchangeType::consistent_hash) exchangeType = "x-consistent-hash";
|
else if (type == ExchangeType::consistent_hash) exchangeType = "x-consistent-hash";
|
||||||
|
|
||||||
// the boolean options
|
// the boolean options
|
||||||
bool passive = flags & AMQP::passive;
|
bool passive = (flags & AMQP::passive) != 0;
|
||||||
bool durable = flags & AMQP::durable;
|
bool durable = (flags & AMQP::durable) != 0;
|
||||||
bool autodelete = flags & AMQP::autodelete;
|
bool autodelete = (flags & AMQP::autodelete) != 0;
|
||||||
bool internal = flags & AMQP::internal;
|
bool internal = (flags & AMQP::internal) != 0;
|
||||||
bool nowait = flags & AMQP::nowait;
|
bool nowait = (flags & AMQP::nowait) != 0;
|
||||||
|
|
||||||
// send declare exchange frame
|
// send declare exchange frame
|
||||||
return push(ExchangeDeclareFrame(_id, name, exchangeType, passive, durable, autodelete, internal, nowait, arguments));
|
return push(ExchangeDeclareFrame(_id, name, exchangeType, passive, durable, autodelete, internal, nowait, arguments));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue