Fix wrong comparison that made IMIN identical to IMAX
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Thu, 31 Jan 2019 14:25:15 +0000 (15:25 +0100)
committerGitHub <noreply@github.com>
Thu, 31 Jan 2019 14:25:15 +0000 (15:25 +0100)
as suggested in #1990

kernel/arm/imin.c

index 598cba3..ffc6522 100644 (file)
@@ -53,7 +53,7 @@ BLASLONG CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
 
        while(i < n)
        {
-               if( x[ix] > minf )
+               if( x[ix] < minf )
                {
                        min = i;
                        minf = x[ix];