aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PaintTest.cpp
diff options
context:
space:
mode:
authorGravatar djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-07 18:58:35 +0000
committerGravatar djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-07 18:58:35 +0000
commitefbe8e9bedda21a3e061ebf3d96431a0f250a654 (patch)
tree4841675c513e4756e18bcba29f16943ff28fec05 /tests/PaintTest.cpp
parent365d78762d0878bb3c9d4bfc90c99eab5f2c896a (diff)
Fix errors when compiling with -Wall -Werror on Android.
This CL also turns those features on by default on Android Review URL: https://codereview.appspot.com/7313049 git-svn-id: http://skia.googlecode.com/svn/trunk@7645 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/PaintTest.cpp')
-rw-r--r--tests/PaintTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PaintTest.cpp b/tests/PaintTest.cpp
index 2a84e4cdbb..ed790764ab 100644
--- a/tests/PaintTest.cpp
+++ b/tests/PaintTest.cpp
@@ -29,8 +29,8 @@ static void test_copy(skiatest::Reporter* reporter) {
#ifdef SK_BUILD_FOR_ANDROID
// the copy constructor should preserve the Generation ID
- int32_t paintGenID = paint.getGenerationID();
- int32_t copiedPaintGenID = copiedPaint.getGenerationID();
+ uint32_t paintGenID = paint.getGenerationID();
+ uint32_t copiedPaintGenID = copiedPaint.getGenerationID();
REPORTER_ASSERT(reporter, paintGenID == copiedPaintGenID);
REPORTER_ASSERT(reporter, !memcmp(&paint, &copiedPaint, sizeof(paint)));
#endif