From 4c6e770f844094b5547b23a3261cc09e10e12a42 Mon Sep 17 00:00:00 2001 From: FritzFlorian Date: Fri, 17 Apr 2020 15:16:20 +0200 Subject: [PATCH] Fix: matrix benchmark uses wrong size parameters. --- extern/benchmark_base/include/benchmark_base/matrix.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extern/benchmark_base/include/benchmark_base/matrix.h b/extern/benchmark_base/include/benchmark_base/matrix.h index 1944c44..1d8af13 100644 --- a/extern/benchmark_base/include/benchmark_base/matrix.h +++ b/extern/benchmark_base/include/benchmark_base/matrix.h @@ -20,8 +20,8 @@ class matrix { T data[SIZE][SIZE]; explicit matrix() { - for (int i = 0; i < MATRIX_SIZE; i++) { - for (int j = 0; j < MATRIX_SIZE; j++) { + for (int i = 0; i < SIZE; i++) { + for (int j = 0; j < SIZE; j++) { data[i][j] = i; } } -- libgit2 0.26.0