Index: Source/platform/fonts/WidthCache.h |
diff --git a/Source/platform/fonts/WidthCache.h b/Source/platform/fonts/WidthCache.h |
index a377c9377d068d96266224552ab3b36009b50268..bcbd57c9f966afd6aa554f20c25dc5d24d4c4fa1 100644 |
--- a/Source/platform/fonts/WidthCache.h |
+++ b/Source/platform/fonts/WidthCache.h |
@@ -130,7 +130,7 @@ public: |
WidthCacheEntry* add(const TextRun& run, WidthCacheEntry entry) |
{ |
- if (static_cast<unsigned>(run.length()) > SmallStringKey::capacity()) |
+ if (run.length() > SmallStringKey::capacity()) |
return 0; |
if (m_countdown > 0) { |
@@ -150,7 +150,7 @@ public: |
private: |
WidthCacheEntry* addSlowCase(const TextRun& run, WidthCacheEntry entry) |
{ |
- int length = run.length(); |
+ unsigned length = run.length(); |
bool isNewEntry; |
WidthCacheEntry *value; |
if (length == 1) { |