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

Unified Diff: src/core/SkMetaData.cpp

Issue 147053003: fix (some) 64bit warnings -- size_t -> int (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 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
« no previous file with comments | « src/core/SkMask.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkMetaData.cpp
diff --git a/src/core/SkMetaData.cpp b/src/core/SkMetaData.cpp
index 5a494b3511f57c1f7a87899ba295b1a55ae4af61..dfc2a949018aadd2989deaa9dc0f9f4a0e346413 100644
--- a/src/core/SkMetaData.cpp
+++ b/src/core/SkMetaData.cpp
@@ -91,7 +91,7 @@ SkScalar* SkMetaData::setScalars(const char name[], int count, const SkScalar va
void SkMetaData::setString(const char name[], const char value[])
{
- (void)this->set(name, value, sizeof(char), kString_Type, strlen(value) + 1);
+ (void)this->set(name, value, sizeof(char), kString_Type, SkToInt(strlen(value) + 1));
}
void SkMetaData::setPtr(const char name[], void* ptr, PtrProc proc) {
@@ -105,7 +105,7 @@ void SkMetaData::setBool(const char name[], bool value)
}
void SkMetaData::setData(const char name[], const void* data, size_t byteCount) {
- (void)this->set(name, data, sizeof(char), kData_Type, byteCount);
+ (void)this->set(name, data, sizeof(char), kData_Type, SkToInt(byteCount));
}
void* SkMetaData::set(const char name[], const void* data, size_t dataSize, Type type, int count)
« no previous file with comments | « src/core/SkMask.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698