From 4debcac8c38cae17a01e697578719c60a068052f Mon Sep 17 00:00:00 2001 From: "robertphillips@google.com" Date: Mon, 14 May 2012 16:33:36 +0000 Subject: 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 --- bench/InterpBench.cpp | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'bench/InterpBench.cpp') diff --git a/bench/InterpBench.cpp b/bench/InterpBench.cpp index 1db832d5d2..89841f8a69 100644 --- a/bench/InterpBench.cpp +++ b/bench/InterpBench.cpp @@ -71,10 +71,21 @@ protected: int64_t step = (int64_t)(dx * 65536 * 655536); SkFixed tmp; for (int i = 0; i < count; i += 4) { - tmp = curr >> 16; dst[i + 0] = TILE(tmp, count); curr += step; - tmp = curr >> 16; dst[i + 1] = TILE(tmp, count); curr += step; - tmp = curr >> 16; dst[i + 2] = TILE(tmp, count); curr += step; - tmp = curr >> 16; dst[i + 3] = TILE(tmp, count); curr += step; + tmp = (SkFixed)(curr >> 16); + dst[i + 0] = TILE(tmp, count); + curr += step; + + tmp = (SkFixed)(curr >> 16); + dst[i + 1] = TILE(tmp, count); + curr += step; + + tmp = (SkFixed)(curr >> 16); + dst[i + 2] = TILE(tmp, count); + curr += step; + + tmp = (SkFixed)(curr >> 16); + dst[i + 3] = TILE(tmp, count); + curr += step; } } private: -- cgit v1.2.3