[GRASS-SVN] r57768 - grass/branches/develbranch_6/vector/v.label.sa
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Sep 20 18:16:54 PDT 2013
Author: hamish
Date: 2013-09-20 18:16:54 -0700 (Fri, 20 Sep 2013)
New Revision: 57768
Modified:
grass/branches/develbranch_6/vector/v.label.sa/labels.c
Log:
fix compiler warning (merge from trunk)
Modified: grass/branches/develbranch_6/vector/v.label.sa/labels.c
===================================================================
--- grass/branches/develbranch_6/vector/v.label.sa/labels.c 2013-09-20 23:23:05 UTC (rev 57767)
+++ grass/branches/develbranch_6/vector/v.label.sa/labels.c 2013-09-21 01:16:54 UTC (rev 57768)
@@ -65,13 +65,13 @@
label_sz = Vect_get_num_primitives(&Map, legal_types);
- G_debug(1, "Need to allocate %u 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 %u bytes of memory"),
+ G_fatal_error(_("Cannot allocate %lu bytes of memory"),
sizeof(label_t) * label_sz);
/* open database */
@@ -127,7 +127,7 @@
if (i == label_sz) { /* we need more memory */
label_sz += 100;
- G_debug(1, "Need to resize %p to %u 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