2006-02-27 Eric Seidel <eseidel@apple.com>
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Feb 2006 21:01:22 +0000 (21:01 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Feb 2006 21:01:22 +0000 (21:01 +0000)
        Reviewed by darin.

        Build fix: cast to unsigned from size_t.

        * platform/StreamingTextDecoder.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13013 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/StreamingTextDecoder.cpp

index ce14c70ae6e11e010fb1dea4ad2dd24a60b6a69e..27f2429f2436cd14c749d54527f2f552e4e215bb 100644 (file)
@@ -1,3 +1,11 @@
+2006-02-27  Eric Seidel  <eseidel@apple.com>
+
+        Reviewed by darin.
+
+        Build fix: cast to unsigned from size_t.
+
+        * platform/StreamingTextDecoder.cpp:
+
 2006-02-27  Maciej Stachowiak  <mjs@apple.com>
  
         Reviewed by Darin.
index 4730264be6095c26dd841825e4a05c0514b21448..a7e4197b58b84b59d2277536a79d2179bf53f923 100644 (file)
@@ -95,7 +95,7 @@ QString StreamingTextDecoder::convertUTF16(const unsigned char *s, int length)
     
     while (len > 1) {
         UChar buffer[ConversionBufferSize];
-        int runLength = min(len / 2, sizeof(buffer) / sizeof(buffer[0]));
+        int runLength = min(len / 2, (unsigned)(sizeof(buffer) / sizeof(buffer[0])));
         int bufferLength = 0;
         if (m_littleEndian) {
             for (int i = 0; i < runLength; ++i) {