r7959 - in /trunk/licq/src: licq.cpp translator.cpp

[email protected]
Newsgroups gmane.network.licq.cvs
Message-ID <20101104184113.C6497224B83@thejon>
Author: erijo
Date: Fri Nov  5 03:41:13 2010
New Revision: 7959

Log:
Fixed some warnings from clang++

Modified:
    trunk/licq/src/licq.cpp
    trunk/licq/src/translator.cpp

Modified: trunk/licq/src/licq.cpp
==============================================================================
--- trunk/licq/src/licq.cpp (original)
+++ trunk/licq/src/licq.cpp Fri Nov  5 03:41:13 2010
@@ -188,7 +188,7 @@
 void displayFatalError(const char* error, int useLicqLog)
 {
   if (useLicqLog)
-    gLog.error(error);
+    gLog.error("%s", error);
   else
     fprintf(stderr, "\n%s\n", error);
 

Modified: trunk/licq/src/translator.cpp
==============================================================================
--- trunk/licq/src/translator.cpp (original)
+++ trunk/licq/src/translator.cpp Fri Nov  5 03:41:13 2010
@@ -374,7 +374,7 @@
 {
   ok = true;
 
-  size_t inLen = (length > -1 ? length : s.size());
+  size_t inLen = (length > -1 ? static_cast<size_t>(length) : s.size());
   size_t outLen = inLen * (length == -2 ? 3 : 2);
   size_t outSize = outLen;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.