Fix Windows build.
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Feb 2008 21:22:04 +0000 (21:22 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Feb 2008 21:22:04 +0000 (21:22 +0000)
        * platform/text/PlatformString.h:
        (WebCore::reverseFind):

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

WebCore/ChangeLog
WebCore/platform/text/PlatformString.h

index 826b9a36f7108cbed4fb33c2cb3bfc296c1735be..a4f3acbf0ba49df847d9dc30dcb4109df65ecda2 100644 (file)
@@ -1,3 +1,10 @@
+2008-02-26  Sam Weinig  <sam@webkit.org>
+
+        Fix Windows build.
+
+        * platform/text/PlatformString.h:
+        (WebCore::reverseFind):
+
 2008-02-26  Dan Bernstein  <mitz@apple.com>
 
         Reviewed by Darin Adler.
index 27a88f23f0bf56e975b64dfcaea6d63bb6326164..9399fddccff4e54ff9913370376507fb2116f87f 100644 (file)
@@ -282,7 +282,7 @@ inline int reverseFind(const UChar* characters, size_t length, UChar character,
     if (startPosition >= static_cast<int>(length) || !length)
         return -1;
     if (startPosition < 0)
-        startPosition += length;
+        startPosition += static_cast<int>(length);
     while (true) {
         if (characters[startPosition] == character)
             return startPosition;