Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Unified Diff: unit_test/compare_test.cc

Issue 2012603002: BenchmarkARGBDetect_Unaligned fix off by one in unitest (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unit_test/compare_test.cc
diff --git a/unit_test/compare_test.cc b/unit_test/compare_test.cc
index 572a0a0aab16497d7f25b7f84b7cc72dcdf32a3e..832f7312340f999c0a8fb2426ad481adfa2c4fe4 100644
--- a/unit_test/compare_test.cc
+++ b/unit_test/compare_test.cc
@@ -179,8 +179,8 @@ TEST_F(LibYUVBaseTest, BenchmarkARGBDetect_Unaligned) {
uint32 fourcc;
const int kMaxTest = benchmark_width_ * benchmark_height_ * 4 + 1;
align_buffer_64(src_a, kMaxTest);
- for (int i = 0; i < kMaxTest; ++i) {
- src_a[i + 1] = 255;
+ for (int i = 1; i < kMaxTest; ++i) {
+ src_a[i] = 255;
}
src_a[0 + 1] = 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698