[GRASS-SVN] r73140 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 22 12:46:58 PDT 2018


Author: mmetz
Date: 2018-08-22 12:46:58 -0700 (Wed, 22 Aug 2018)
New Revision: 73140

Modified:
   grass/trunk/lib/vector/Vlib/break_lines.c
Log:
Vlib: add comment to qsort cmp fn (see #3564)

Modified: grass/trunk/lib/vector/Vlib/break_lines.c
===================================================================
--- grass/trunk/lib/vector/Vlib/break_lines.c	2018-08-22 19:44:52 UTC (rev 73139)
+++ grass/trunk/lib/vector/Vlib/break_lines.c	2018-08-22 19:46:58 UTC (rev 73140)
@@ -110,7 +110,9 @@
 {
     int ai = *(int *)a;
     int bi = *(int *)b;
-    
+
+    /* ai - bi is ok because ai and bi are positive integers
+     * -> no integer overflow */
     return (ai - bi);
 }
 



More information about the grass-commit mailing list