From 4178ec0582987d7b191c609a937d389abc2e74bc Mon Sep 17 00:00:00 2001 From: "mtklein@google.com" Date: Tue, 3 Dec 2013 00:01:03 +0000 Subject: Fix off-by-one in four_byte_interp benches. BUG= Review URL: https://codereview.chromium.org/100563002 git-svn-id: http://skia.googlecode.com/svn/trunk@12451 2bbb7eff-a529-9590-31e7-b0007b416f81 --- bench/ColorPrivBench.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bench/ColorPrivBench.cpp') diff --git a/bench/ColorPrivBench.cpp b/bench/ColorPrivBench.cpp index 3143ef4525..1e152e6d62 100644 --- a/bench/ColorPrivBench.cpp +++ b/bench/ColorPrivBench.cpp @@ -28,7 +28,7 @@ public: const SkPMColor src = 0xAB998877, dst = 0x66334455; volatile SkPMColor junk = 0; for (int i = 0; i < 10*this->getLoops(); ++i) { - for (size_t j = 0; j <= SK_ARRAY_COUNT(fScales); j++) { + for (size_t j = 0; j <= 256; j++) { const unsigned scale = fScales[j]; if (kFast && kScale) { junk ^= SkFastFourByteInterp(src, dst, scale); -- cgit v1.2.3