From: Lars Op den Kamp Date: Wed, 25 Apr 2012 23:15:31 +0000 (+0200) Subject: cec: fixed compilation warning on win64 X-Git-Tag: upstream/2.2.0~1^2~29^2^2~37 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4d14323b2ecc400110ace550ae7e4739964dfa8b;p=deb_libcec.git cec: fixed compilation warning on win64 --- diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index 8ac48d4..07e7d8f 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -195,7 +195,7 @@ bool CCECProcessor::OpenConnection(const char *strPort, uint16_t iBaudRate, uint { time_t buildTime = (time_t)m_configuration.iFirmwareBuildDate; strLog.AppendFormat(", firmware build date: %s", asctime(gmtime(&buildTime))); - strLog = strLog.Left(strLog.length() - 1); // strip \n added by asctime + strLog = strLog.Left((int)strLog.length() - 1); // strip \n added by asctime strLog.append(" +0000"); } CLibCEC::AddLog(CEC_LOG_NOTICE, strLog);