diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-05-14 16:33:36 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-05-14 16:33:36 +0000 |
commit | 4debcac8c38cae17a01e697578719c60a068052f (patch) | |
tree | fe0f4e1b11fa773d8ce0eb446cb5912d8e055eea /tests/MathTest.cpp | |
parent | 59bc8d4fa725da2a6cec3526859c488b577d5cce (diff) |
Debug Windows compiler complaint fixes
http://codereview.appspot.com/6208055/
git-svn-id: http://skia.googlecode.com/svn/trunk@3924 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/MathTest.cpp')
-rw-r--r-- | tests/MathTest.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/MathTest.cpp b/tests/MathTest.cpp index fe162b114f..eec9dbe826 100644 --- a/tests/MathTest.cpp +++ b/tests/MathTest.cpp @@ -418,11 +418,13 @@ static void TestMath(skiatest::Reporter* reporter) { // These random values are being treated as 32-bit-patterns, not as // ints; calling SkIntToScalar() here produces crashes. - p.setLength(rand.nextS(), - rand.nextS(), SK_Scalar1); + p.setLength((SkScalar) rand.nextS(), + (SkScalar) rand.nextS(), + SK_Scalar1); check_length(reporter, p, SK_Scalar1); - p.setLength(rand.nextS() >> 13, - rand.nextS() >> 13, SK_Scalar1); + p.setLength((SkScalar) (rand.nextS() >> 13), + (SkScalar) (rand.nextS() >> 13), + SK_Scalar1); check_length(reporter, p, SK_Scalar1); } |