aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/InterpBench.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 /bench/InterpBench.cpp
parent59bc8d4fa725da2a6cec3526859c488b577d5cce (diff)
Debug Windows compiler complaint fixes
Diffstat (limited to 'bench/InterpBench.cpp')
-rw-r--r--bench/InterpBench.cpp19
1 files changed, 15 insertions, 4 deletions
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: