summaryrefslogtreecommitdiffstats
path: root/WebCore/loader/icon/IconFetcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/loader/icon/IconFetcher.cpp')
-rw-r--r--WebCore/loader/icon/IconFetcher.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/loader/icon/IconFetcher.cpp b/WebCore/loader/icon/IconFetcher.cpp
index 3d3df39..1107d7b 100644
--- a/WebCore/loader/icon/IconFetcher.cpp
+++ b/WebCore/loader/icon/IconFetcher.cpp
@@ -87,8 +87,8 @@ static void parseIconLink(HTMLLinkElement* link, Vector<IconLinkEntry>& entries)
// Try to determine the file type.
String path = url.path();
- int pos = path.reverseFind('.');
- if (pos >= 0) {
+ size_t pos = path.reverseFind('.');
+ if (pos != notFound) {
String extension = path.substring(pos + 1);
if (equalIgnoringCase(extension, "icns"))
type = IconLinkEntry::ICNS;