From 526e58d0d1a2f8e640a4791f8df79b8150f75040 Mon Sep 17 00:00:00 2001
From: Alexey <AlexeyAB@users.noreply.github.com>
Date: Sun, 10 Jun 2018 11:48:38 +0000
Subject: [PATCH] Merge pull request #1017 from jing-vision/master

---
 src/matrix.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/matrix.c b/src/matrix.c
index ee14979..08e6109 100644
--- a/src/matrix.c
+++ b/src/matrix.c
@@ -22,8 +22,8 @@
     for(i = 0; i < truth.rows; ++i){
         top_k(guess.vals[i], n, k, indexes);
         for(j = 0; j < k; ++j){
-            int class = indexes[j];
-            if(truth.vals[i][class]){
+            int class_id = indexes[j];
+            if(truth.vals[i][class_id]){
                 ++correct;
                 break;
             }

--
Gitblit v1.10.0