From 1e32c24a17730f30aa4e3fce60f6c0a328972669 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Fri, 11 Dec 2015 11:09:39 +0100 Subject: [PATCH] Fix two comparison between signed and unsigned integer warnings --- simgear/io/HTTPClient.cxx | 2 +- simgear/scene/tsync/terrasync.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/simgear/io/HTTPClient.cxx b/simgear/io/HTTPClient.cxx index 2a6d41e2..302a01f0 100644 --- a/simgear/io/HTTPClient.cxx +++ b/simgear/io/HTTPClient.cxx @@ -1066,7 +1066,7 @@ size_t Client::requestHeaderCallback(char *rawBuffer, size_t size, size_t nitems return byteSize; // skip headers associated with 100-continue status } - int colonPos = h.find(':'); + size_t colonPos = h.find(':'); if (colonPos == std::string::npos) { SG_LOG(SG_IO, SG_WARN, "malformed HTTP response header:" << h); return byteSize; diff --git a/simgear/scene/tsync/terrasync.cxx b/simgear/scene/tsync/terrasync.cxx index c0b5b82c..68f059d4 100644 --- a/simgear/scene/tsync/terrasync.cxx +++ b/simgear/scene/tsync/terrasync.cxx @@ -605,7 +605,7 @@ void SGTerraSync::SvnThread::updateSyncSlot(SyncSlot &slot) if (slot.repository.get()) { if (slot.repository->isDoingSync()) { #if 1 - if (slot.stamp.elapsedMSec() > slot.nextWarnTimeout) { + if (slot.stamp.elapsedMSec() > (int)slot.nextWarnTimeout) { SG_LOG(SG_TERRAIN, SG_INFO, "sync taking a long time:" << slot.currentItem._dir << " taken " << slot.stamp.elapsedMSec()); SG_LOG(SG_TERRAIN, SG_INFO, "HTTP status:" << _http.hasActiveRequests()); slot.nextWarnTimeout += 10000; @@ -1085,4 +1085,4 @@ bool SGTerraSync::isDataDirPending(const std::string& dataDir) const void SGTerraSync::reposition() { // stub, remove -} \ No newline at end of file +} -- 2.39.5