cec: fixed compilation warning on win64
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 25 Apr 2012 23:15:31 +0000 (01:15 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 25 Apr 2012 23:15:31 +0000 (01:15 +0200)
src/lib/CECProcessor.cpp

index 8ac48d47117d5c50478b7df1af0e10493df179fa..07e7d8f0dc4003b3d4ee280e88a9cd306a282318 100644 (file)
@@ -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)));
     {
       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);
       strLog.append(" +0000");
     }
     CLibCEC::AddLog(CEC_LOG_NOTICE, strLog);