Fix two comparison between signed and unsigned integer warnings
This commit is contained in:
parent
20ea55bdbc
commit
1e32c24a17
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user