[GRASS-SVN] r73136 - grass/trunk/raster/r.what
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 22 12:38:19 PDT 2018
Author: mmetz
Date: 2018-08-22 12:38:19 -0700 (Wed, 22 Aug 2018)
New Revision: 73136
Modified:
grass/trunk/raster/r.what/main.c
Log:
r.what: fix qsort cmp fn (see #3564)
Modified: grass/trunk/raster/r.what/main.c
===================================================================
--- grass/trunk/raster/r.what/main.c 2018-08-22 18:38:10 UTC (rev 73135)
+++ grass/trunk/raster/r.what/main.c 2018-08-22 19:38:19 UTC (rev 73136)
@@ -562,7 +562,9 @@
{
const struct order *i = ii, *j = jj;
- return i->row - j->row;
+ if (i->row < j->row)
+ return -1;
+ return (i->row > j->row);
}
More information about the grass-commit
mailing list