Changeset 51859


Ignore:
Timestamp:
May 28, 2012 7:33:21 PM (4 years ago)
Author:
hamish
Message:

take care of some compiler warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • grass/trunk/vector/v.label.sa/labels.c

    r38950 r51859  
    5959    label_sz = Vect_get_num_primitives(&Map, legal_types);
    6060
    61     G_debug(1, "Need to allocate %d bytes of memory",
     61    G_debug(1, "Need to allocate %lu bytes of memory",
    6262            sizeof(label_t) * label_sz);
    6363    labels = (label_t *) G_malloc(sizeof(label_t) * label_sz);
     
    6565
    6666    if (labels == NULL)
    67         G_fatal_error(_("Cannot allocate %d bytes of memory"),
     67        G_fatal_error(_("Cannot allocate %lu bytes of memory"),
    6868                      sizeof(label_t) * label_sz);
    6969
     
    120120        if (i == label_sz) {    /* we need more memory */
    121121            label_sz += 100;
    122             G_debug(1, "Need to resize %p to %d bytes of memory",
     122            G_debug(1, "Need to resize %p to %lu bytes of memory",
    123123                    (void *)labels, sizeof(label_t) * label_sz);
    124124            labels = G_realloc(labels, sizeof(label_t) * label_sz);
Note: See TracChangeset for help on using the changeset viewer.