[GRASS-SVN] r54880 - grass/trunk/lib/ogsf

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Feb 3 11:54:55 PST 2013


Author: mmetz
Date: 2013-02-03 11:54:55 -0800 (Sun, 03 Feb 2013)
New Revision: 54880

Modified:
   grass/trunk/lib/ogsf/gvl_calc.c
Log:
ogsf lib: avoid compiler warnings

Modified: grass/trunk/lib/ogsf/gvl_calc.c
===================================================================
--- grass/trunk/lib/ogsf/gvl_calc.c	2013-02-03 19:48:29 UTC (rev 54879)
+++ grass/trunk/lib/ogsf/gvl_calc.c	2013-02-03 19:54:55 UTC (rev 54880)
@@ -782,7 +782,7 @@
     
 
     /* realloc memory to fit in data length */
-    p = (char *)G_realloc(p, sizeof(char) * pos);	/* G_fatal_error */
+    p = (unsigned char *)G_realloc(p, sizeof(unsigned char) * pos);	/* G_fatal_error */
     if (!p) {
 	return;
     }



More information about the grass-commit mailing list