libt2n: (tomj) small fix to support data transfers over 2GB
[libt2n] / src / socket_handler.cpp
index b2bbcd1..91d5899 100644 (file)
@@ -267,7 +267,7 @@ bool socket_handler::fill_buffer(std::string& buffer)
 /// connection because it encapsulates the data.
 void socket_handler::socket_write(const std::string& data)
 {
-    int offset = 0;
+    unsigned int offset = 0;
     while (offset < data.size())
     {
         unsigned int write_size=write_block_size;