mirror of https://gitee.com/bigwinds/arangodb
Fix warning for 32 bit systems
This commit is contained in:
parent
fe2d5ee0a2
commit
982615e9dc
|
@ -356,13 +356,13 @@ namespace triagens {
|
||||||
std::map<std::string, std::string>::const_iterator it = headers.find(_errorHeader);
|
std::map<std::string, std::string>::const_iterator it = headers.find(_errorHeader);
|
||||||
|
|
||||||
if (it != headers.end()) {
|
if (it != headers.end()) {
|
||||||
size_t errorCount = (size_t) StringUtils::uint32((*it).second);
|
uint32_t errorCount = StringUtils::uint32((*it).second);
|
||||||
|
|
||||||
if (errorCount > 0) {
|
if (errorCount > 0) {
|
||||||
_operationsCounter->incFailures(errorCount);
|
_operationsCounter->incFailures(errorCount);
|
||||||
_warningCount++;
|
_warningCount++;
|
||||||
if (_warningCount < MaxWarnings) {
|
if (_warningCount < MaxWarnings) {
|
||||||
LOG_WARNING("Server side warning count: %lu", errorCount);
|
LOG_WARNING("Server side warning count: %u", errorCount);
|
||||||
if (_verbose) {
|
if (_verbose) {
|
||||||
LOG_WARNING("Server reply: %s", result->getBody().c_str());
|
LOG_WARNING("Server reply: %s", result->getBody().c_str());
|
||||||
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
||||||
|
|
Loading…
Reference in New Issue