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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/FastSharedBufferReader.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/platform/image-decoders/FastSharedBufferReader.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/FastSharedBufferReader.cpp b/third_party/WebKit/Source/platform/image-decoders/FastSharedBufferReader.cpp
index a64f4d7691a8e96f8e6cb33339d77d7b533a2576..63a380a34bced9cbb5bace6ab5820c07a60df9b1 100644
--- a/third_party/WebKit/Source/platform/image-decoders/FastSharedBufferReader.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/FastSharedBufferReader.cpp
@@ -88,7 +88,7 @@ size_t FastSharedBufferReader::getSomeData(const char*& someData, size_t dataPos
return m_segmentLength;
}
-void FastSharedBufferReader::getSomeDataInternal(unsigned dataPosition) const
+void FastSharedBufferReader::getSomeDataInternal(size_t dataPosition) const
{
m_dataPosition = dataPosition;
m_segmentLength = m_data->getSomeData(m_segment, dataPosition);

Powered by Google App Engine
This is Rietveld 408576698