Commit 92bd01b3 authored by rniwa@webkit.org's avatar rniwa@webkit.org

2010-11-08 Ryosuke Niwa <rniwa@webkit.org>

        Unreviewed build fix for Chromium Mac for r71590.

        * platform/graphics/mac/ComplexTextControllerCoreText.cpp:
        (WebCore::provideStringAndAttributes):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@71598 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent de91794f
2010-11-08 Ryosuke Niwa <rniwa@webkit.org>
Unreviewed build fix for Chromium Mac for r71590.
* platform/graphics/mac/ComplexTextControllerCoreText.cpp:
(WebCore::provideStringAndAttributes):
2010-11-08 Anton Muhin <antonm@chromium.org> 2010-11-08 Anton Muhin <antonm@chromium.org>
Reviewed by Nate Chapin. Reviewed by Nate Chapin.
...@@ -111,7 +111,7 @@ struct ProviderInfo { ...@@ -111,7 +111,7 @@ struct ProviderInfo {
static const UniChar* provideStringAndAttributes(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void* refCon) static const UniChar* provideStringAndAttributes(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void* refCon)
{ {
ProviderInfo* info = static_cast<struct ProviderInfo*>(refCon); ProviderInfo* info = static_cast<struct ProviderInfo*>(refCon);
if (stringIndex >= info->length) if (stringIndex < 0 || static_cast<unsigned>(stringIndex) >= info->length)
return 0; return 0;
*charCount = info->length - stringIndex; *charCount = info->length - stringIndex;
......
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