Commit 10ac6851 authored by weinig@apple.com's avatar weinig@apple.com

Fix Windows build.

        * platform/text/PlatformString.h:
        (WebCore::reverseFind):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30596 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 8e3f8bda
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.
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment