return;
}
-static inline double vector_magnitude(const POINT3D* v)
-{
- return sqrt(v->x*v->x + v->y*v->y + v->z*v->z);
-}
+/*
+* static inline double vector_magnitude(const POINT3D* v)
+* {
+* return sqrt(v->x*v->x + v->y*v->y + v->z*v->z);
+* }
+*/
/**
* Angle between two unit vectors
{
LWDEBUGF(2, "Entered u_getvarint_size",0);
- if(val<0||val>max_varint)
+ if(val>max_varint)
lwerror("Value is out of range for unsigned varint (0 to %ld)", max_varint);
uint64_t q;
int n=0;
state->column_map_pgfieldnames[curmapsize][fieldnamesize] = '\0';
/* Now swallow up any whitespace */
- for (tmpstr = tmpptr; *tmpptr == '\t' || *tmpptr == '\n' || *tmpptr == ' '; tmpptr++);
+ for (tmpstr = tmpptr; *tmpptr == '\t' || *tmpptr == '\n' || *tmpptr == ' '; tmpptr++) {}
/* Finally locate end of second column (dbffieldname) */
for (tmpstr = tmpptr; *tmpptr != '\t' && *tmpptr != '\n' && *tmpptr != ' ' && *tmpptr != '\0'; tmpptr++);
Datum LWGEOM_curve_segmentize(PG_FUNCTION_ARGS)
{
GSERIALIZED *geom = (GSERIALIZED *)PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
- uint32 perQuad = PG_GETARG_INT32(1);
+ int32 perQuad = PG_GETARG_INT32(1);
GSERIALIZED *ret;
LWGEOM *igeom = NULL, *ogeom = NULL;