[GRASS-SVN] r72729 - grass/trunk/raster/r.kappa
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon May 21 13:38:22 PDT 2018
Author: mmetz
Date: 2018-05-21 13:38:21 -0700 (Mon, 21 May 2018)
New Revision: 72729
Modified:
grass/trunk/raster/r.kappa/prt_mat.c
Log:
r.kappa: fix qsort callback (partial fix for #3564)
Modified: grass/trunk/raster/r.kappa/prt_mat.c
===================================================================
--- grass/trunk/raster/r.kappa/prt_mat.c 2018-05-21 20:35:51 UTC (rev 72728)
+++ grass/trunk/raster/r.kappa/prt_mat.c 2018-05-21 20:38:21 UTC (rev 72729)
@@ -206,5 +206,8 @@
const long *a = aa;
const long *b = bb;
- return (*a - *b);
+ if (*a != *b)
+ return (*a > *b ? 1 : -1);
+
+ return 0;
}
More information about the grass-commit
mailing list