summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-02-28 22:33:16 +0000
committerOthmar Gsenger <otti@anytun.org>2008-02-28 22:33:16 +0000
commit5962cd2e8dc2c41b121717fd0cf52bbee04729ec (patch)
treea41f501dfbc4ce986997bc0037c10c523cd69ba9
parentfix (diff)
changed types
-rw-r--r--syncClientSocket.cpp2
-rw-r--r--syncClientSocket.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/syncClientSocket.cpp b/syncClientSocket.cpp
index 8d1da61..c68586a 100644
--- a/syncClientSocket.cpp
+++ b/syncClientSocket.cpp
@@ -59,7 +59,7 @@ void SyncClientSocket::OnRawData(const char *buf,size_t len)
cLog.msg(Log::PRIO_NOTICE) << "recieved sync inforamtaion from " << GetRemoteHostname() <<" "<<tmp.str()<<"bytes of data"<< std::endl;
delete buffer;
} else
- if(missing_chars>0 && missing_chars<=static_cast<int16_t>(iss_.str().length()))
+ if(missing_chars>0 && missing_chars<=static_cast<int32_t>(iss_.str().length()))
{
char * buffer = new char [missing_chars];
iss_.read(buffer,missing_chars);
diff --git a/syncClientSocket.h b/syncClientSocket.h
index 432657a..e85b7cf 100644
--- a/syncClientSocket.h
+++ b/syncClientSocket.h
@@ -26,7 +26,7 @@ public:
private:
ConnectionList & cl_;
std::stringstream iss_;
- int16_t missing_chars;
+ int32_t missing_chars;
};