Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: third_party/WebKit/Source/core/fetch/ScriptResource.cpp

Issue 1571233003: Fix errors caused by unsafe conversions to/from size_t (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: improved ALLOW_NUMERIC_ARG_TYPES_PROMOTABLE_TO Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/fetch/ScriptResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ScriptResource.cpp b/third_party/WebKit/Source/core/fetch/ScriptResource.cpp
index fb4cfdd77c09777f3676f9bfceb86903ecdf1af0..686d4ac4b55ba0abace1d1225a85881083ec4603 100644
--- a/third_party/WebKit/Source/core/fetch/ScriptResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/ScriptResource.cpp
@@ -68,7 +68,7 @@ void ScriptResource::didAddClient(ResourceClient* client)
Resource::didAddClient(client);
}
-void ScriptResource::appendData(const char* data, unsigned length)
+void ScriptResource::appendData(const char* data, size_t length)
{
Resource::appendData(data, length);
ResourceClientWalker<ScriptResourceClient> walker(m_clients);
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ScriptResource.h ('k') | third_party/WebKit/Source/core/fetch/TextResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698