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

Unified Diff: src/utils/SkBitmapChecksummer.cpp

Issue 12629003: Fix a warning in bitmap checksummer. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkBitmapChecksummer.cpp
diff --git a/src/utils/SkBitmapChecksummer.cpp b/src/utils/SkBitmapChecksummer.cpp
index bb9fc8d9740421dc5bd78d315098646581d4803b..883210c360059dd6fc0ad41f01f2f8be0c7967a6 100644
--- a/src/utils/SkBitmapChecksummer.cpp
+++ b/src/utils/SkBitmapChecksummer.cpp
@@ -25,8 +25,8 @@ static void write_int_to_buffer(int val, char* buf) {
/*static*/ uint64_t SkBitmapChecksummer::Compute64Internal(
const SkBitmap& bitmap, const SkBitmapTransformer& transformer) {
- int pixelBufferSize = transformer.bytesNeededTotal();
- int totalBufferSize = pixelBufferSize + 8; // leave room for x/y dimensions
+ size_t pixelBufferSize = transformer.bytesNeededTotal();
+ size_t totalBufferSize = pixelBufferSize + 8; // leave room for x/y dimensions
SkAutoMalloc bufferManager(totalBufferSize);
char *bufferStart = static_cast<char *>(bufferManager.get());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698