[GRASS-SVN] r51859 - grass/trunk/vector/v.label.sa

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 28 19:33:22 PDT 2012


Author: hamish
Date: 2012-05-28 19:33:21 -0700 (Mon, 28 May 2012)
New Revision: 51859

Modified:
   grass/trunk/vector/v.label.sa/labels.c
Log:
take care of some compiler warnings

Modified: grass/trunk/vector/v.label.sa/labels.c
===================================================================
--- grass/trunk/vector/v.label.sa/labels.c	2012-05-28 22:52:20 UTC (rev 51858)
+++ grass/trunk/vector/v.label.sa/labels.c	2012-05-29 02:33:21 UTC (rev 51859)
@@ -58,13 +58,13 @@
 
     label_sz = Vect_get_num_primitives(&Map, legal_types);
 
-    G_debug(1, "Need to allocate %d bytes of memory",
+    G_debug(1, "Need to allocate %lu bytes of memory",
 	    sizeof(label_t) * label_sz);
     labels = (label_t *) G_malloc(sizeof(label_t) * label_sz);
     G_debug(1, "labels=%p", labels);
 
     if (labels == NULL)
-	G_fatal_error(_("Cannot allocate %d bytes of memory"),
+	G_fatal_error(_("Cannot allocate %lu bytes of memory"),
 		      sizeof(label_t) * label_sz);
 
     /* open database */
@@ -119,7 +119,7 @@
 
 	if (i == label_sz) {	/* we need more memory */
 	    label_sz += 100;
-	    G_debug(1, "Need to resize %p to %d bytes of memory",
+	    G_debug(1, "Need to resize %p to %lu bytes of memory",
 		    (void *)labels, sizeof(label_t) * label_sz);
 	    labels = G_realloc(labels, sizeof(label_t) * label_sz);
 	    if (labels == NULL) {



More information about the grass-commit mailing list