From: scroggo@google.com Date: Thu, 7 Mar 2013 18:14:11 +0000 (+0000) Subject: Fix a warning in bitmap checksummer. X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~13226 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=807da9d1f2f2bfca9a73ff648180d6f8642d0307;p=platform%2Fupstream%2FlibSkiaSharp.git Fix a warning in bitmap checksummer. Review URL: https://codereview.chromium.org/12629003 git-svn-id: http://skia.googlecode.com/svn/trunk@8022 2bbb7eff-a529-9590-31e7-b0007b416f81 --- diff --git a/src/utils/SkBitmapChecksummer.cpp b/src/utils/SkBitmapChecksummer.cpp index bb9fc8d..883210c 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(bufferManager.get());