1
0
Fork 0

Fix warning for 32 bit systems

This commit is contained in:
Willi Goesgens 2015-05-05 11:06:12 +02:00
parent fe2d5ee0a2
commit 982615e9dc
1 changed files with 2 additions and 2 deletions

View File

@ -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