aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/MathTest.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-14 16:33:36 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-14 16:33:36 +0000
commit4debcac8c38cae17a01e697578719c60a068052f (patch)
treefe0f4e1b11fa773d8ce0eb446cb5912d8e055eea /tests/MathTest.cpp
parent59bc8d4fa725da2a6cec3526859c488b577d5cce (diff)
Debug Windows compiler complaint fixes
Diffstat (limited to 'tests/MathTest.cpp')
-rw-r--r--tests/MathTest.cpp10
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);
}