Browse Source

Vlib: fix pointer address for debug message

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71269 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 7 years ago
parent
commit
9715beb4c5
1 changed files with 2 additions and 3 deletions
  1. 2 3
      lib/vector/Vlib/sindex.c

+ 2 - 3
lib/vector/Vlib/sindex.c

@@ -146,9 +146,8 @@ Vect_select_areas_by_box(struct Map_info *Map, const struct bound_box * Box,
     /* avoid loop when not debugging */
     /* avoid loop when not debugging */
     if (debug_level > 2) {
     if (debug_level > 2) {
 	for (i = 0; i < list->n_values; i++) {
 	for (i = 0; i < list->n_values; i++) {
-	    G_debug(3, "  area = %d pointer to area structure = %lx",
-		    list->id[i],
-		    (unsigned long)Map->plus.Area[list->id[i]]);
+	    G_debug(3, "  area = %d pointer to area structure = %p",
+		    list->id[i], (void *)Map->plus.Area[list->id[i]]);
 	}
 	}
     }
     }