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
diff --git a/bench/InterpBench.cpp b/bench/InterpBench.cpp
index 1db832d..89841f8 100644
--- a/bench/InterpBench.cpp
+++ b/bench/InterpBench.cpp
@@ -71,10 +71,21 @@
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: