Skip to content

Commit 0795cb8

Browse files
committed
Small fix
1 parent 4ae06e3 commit 0795cb8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

SampleTest/SampleTest.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,10 @@ int ArgMax (byte [,] array, int idx)
472472
int maxIdx = -1;
473473
var l = array.GetLength (1);
474474
for (int i = 0; i < l; i++)
475-
if (array [idx, i] > max)
475+
if (array [idx, i] > max) {
476476
maxIdx = i;
477+
max = array [idx, i];
478+
}
477479
return maxIdx;
478480
}
479481

0 commit comments

Comments
 (0)