]> granicus.if.org Git - postgis/commitdiff
rollback to contain cast
authorChris Hodgson <chodgson@refractions.net>
Thu, 5 Jan 2006 00:26:31 +0000 (00:26 +0000)
committerChris Hodgson <chodgson@refractions.net>
Thu, 5 Jan 2006 00:26:31 +0000 (00:26 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2254 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_inout.c

index 6f63ebaf7e0f8f1ab60f3f9a7aa4b1977a92c2d4..3eae9c4cd53135cd8ea313e70b6d86573836c1be 100644 (file)
@@ -146,7 +146,7 @@ Datum LWGEOMFromWKB(PG_FUNCTION_ARGS)
 
        wkb_input = (WellKnownBinary *)PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
 
-       lwgeom2 = pglwgeom_from_ewkb(VARDATA(wkb_input),
+       lwgeom2 = pglwgeom_from_ewkb((uchar *)VARDATA(wkb_input),
                VARSIZE(wkb_input)-VARHDRSZ);
 
        if (  ( PG_NARGS()>1) && ( ! PG_ARGISNULL(1) ))