win32: fixed signed/unsigned warning
authorLars Op den Kamp <lars@opdenkamp.eu>
Fri, 3 Aug 2012 00:50:27 +0000 (02:50 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Fri, 3 Aug 2012 00:50:27 +0000 (02:50 +0200)
src/lib/platform/windows/serialport.cpp

index c595468cf0b5621d3efc7de3a39bd521a03138f2..00ba7bb80e0ce3530182cb95542176bb75ee89be 100644 (file)
@@ -103,7 +103,7 @@ ssize_t CSerialSocket::Write(void* data, size_t len)
   if (IsOpen())
   {
     ssize_t iReturn = SerialSocketWrite(m_socket, &m_iError, data, len);
-    if (iReturn != len)
+    if (iReturn != (ssize_t)len)
     {
       m_strError = "unable to write to the serial port";
       FormatWindowsError(GetLastError(), m_strError);