From 4aaa8ca0d7cb2569c3bd064a330def3a1dedfce8 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 10 Mar 2015 13:41:46 +0100 Subject: [PATCH] Revert "Avoid useless call to pc_bytes_serialized_size" This reverts commit 69ed4d3c36d685b2b79778d52cebe2014f68b69e. The call was not useless, see #44 --- pgsql/pc_pgsql.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pgsql/pc_pgsql.c b/pgsql/pc_pgsql.c index f1ad5c0..44a749f 100644 --- a/pgsql/pc_pgsql.c +++ b/pgsql/pc_pgsql.c @@ -824,6 +824,7 @@ pc_patch_dimensional_deserialize(const SERIALIZED_PATCH *serpatch, const PCSCHEM PCDIMENSION *dim = schema->dims[i]; pc_bytes_deserialize(buf, dim, pcb, true /*readonly*/, false /*flipendian*/); pcb->npoints = npoints; + buf += pc_bytes_serialized_size(pcb); } return (PCPATCH*)patch; @@ -993,4 +994,4 @@ pc_patch_to_geometry_wkb_envelope(const SERIALIZED_PATCH *pa, const PCSCHEMA *sc if ( wkbsize ) *wkbsize = size; return wkb; -} +} \ No newline at end of file