From: Lars Op den Kamp Date: Fri, 3 Aug 2012 00:50:27 +0000 (+0200) Subject: win32: fixed signed/unsigned warning X-Git-Tag: upstream/2.2.0~1^2~18^2^2~25 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=fce3d4acbadffe3dacbf3d49a77f685ef8e82c02;p=deb_libcec.git win32: fixed signed/unsigned warning --- diff --git a/src/lib/platform/windows/serialport.cpp b/src/lib/platform/windows/serialport.cpp index c595468..00ba7bb 100644 --- a/src/lib/platform/windows/serialport.cpp +++ b/src/lib/platform/windows/serialport.cpp @@ -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);