git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73140 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -110,7 +110,9 @@ static int cmp(const void *a, const void *b)
{
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);
}