From 4a69e83cb270fde99b0991e8c8443d09cc61b102 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Mon, 8 Oct 2012 00:13:48 +0200 Subject: [PATCH] silence signed overflow warning --- src/lib/CECClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/CECClient.cpp b/src/lib/CECClient.cpp index cafcd70..ed3f47e 100644 --- a/src/lib/CECClient.cpp +++ b/src/lib/CECClient.cpp @@ -1076,7 +1076,7 @@ std::string CCECClient::GetConnectionInfo(void) { time_t buildTime = (time_t)m_configuration.iFirmwareBuildDate; strLog.AppendFormat(", firmware build date: %s", asctime(gmtime(&buildTime))); - strLog = strLog.Left((int)strLog.length() - 1); // strip \n added by asctime + strLog = strLog.substr(0, strLog.length() > 0 ? (size_t)(strLog.length() - 1) : 0); // strip \n added by asctime strLog.append(" +0000"); } -- 2.34.1