[GRASS-SVN] r52046 - grass/trunk/lib/vector/diglib
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jun 12 05:19:30 PDT 2012
Author: mmetz
Date: 2012-06-12 05:19:29 -0700 (Tue, 12 Jun 2012)
New Revision: 52046
Modified:
grass/trunk/lib/vector/diglib/allocation.c
Log:
size_t: update vector diglib
Modified: grass/trunk/lib/vector/diglib/allocation.c
===================================================================
--- grass/trunk/lib/vector/diglib/allocation.c 2012-06-12 12:12:35 UTC (rev 52045)
+++ grass/trunk/lib/vector/diglib/allocation.c 2012-06-12 12:19:29 UTC (rev 52046)
@@ -78,7 +78,7 @@
/* first time called allocate initial storage */
if (*n_elements == 0)
- ptr = G_calloc((unsigned)to_alloc, (unsigned)element_size);
+ ptr = G_calloc(to_alloc, element_size);
else
ptr = dig__frealloc((char *)ptr, to_alloc, element_size, *n_elements);
@@ -126,7 +126,7 @@
nelem = 1;
}
- ptr = G_calloc((unsigned)nelem, (unsigned)elsize);
+ ptr = G_calloc(nelem, elsize);
return (ptr);
}
@@ -141,7 +141,7 @@
nelem = 1;
}
- ptr = G_calloc((unsigned)nelem, (unsigned)elsize);
+ ptr = G_calloc(nelem, elsize);
/* out of memory */
if (!ptr)
@@ -150,7 +150,7 @@
{
register char *a;
register char *b;
- register long n;
+ register size_t n;
n = oldnelem * elsize;
a = ptr;
More information about the grass-commit
mailing list