[postgis-tickets] r14379 - #3368 twkb on 32bit architecture

Paul Ramsey pramsey at cleverelephant.ca
Fri Nov 13 12:08:41 PST 2015


Author: pramsey
Date: 2015-11-13 12:08:40 -0800 (Fri, 13 Nov 2015)
New Revision: 14379

Modified:
   branches/2.2/liblwgeom/lwout_twkb.c
   branches/2.2/regress/tickets.sql
   branches/2.2/regress/tickets_expected
Log:
#3368 twkb on 32bit architecture


Modified: branches/2.2/liblwgeom/lwout_twkb.c
===================================================================
--- branches/2.2/liblwgeom/lwout_twkb.c	2015-11-12 19:23:12 UTC (rev 14378)
+++ branches/2.2/liblwgeom/lwout_twkb.c	2015-11-13 20:08:40 UTC (rev 14379)
@@ -151,7 +151,7 @@
 			/* from the last point but instead the distance from our */
 			/* last accumulated point. This is important to not build up an */
 			/* accumulated error when rounding the coordinates */
-			nextdelta[j] = (int64_t) lround(globals->factor[j] * dbl_ptr[j]) - ts->accum_rels[j];
+			nextdelta[j] = (int64_t) llround(globals->factor[j] * dbl_ptr[j]) - ts->accum_rels[j];
 			LWDEBUGF(4, "deltavalue: %d, ", nextdelta[j]);
 			diff += llabs(nextdelta[j]);
 		}

Modified: branches/2.2/regress/tickets.sql
===================================================================
--- branches/2.2/regress/tickets.sql	2015-11-12 19:23:12 UTC (rev 14378)
+++ branches/2.2/regress/tickets.sql	2015-11-13 20:08:40 UTC (rev 14379)
@@ -915,5 +915,8 @@
 
 SELECT '#3367', ST_AsText(ST_RemoveRepeatedPoints('POLYGON EMPTY'::geometry));
 
+SELECT '#3368', ST_AsTWKB('0106000000010000000103000000010000001F0000007CCD1788E93A68C1B264ED35E160594198825A8FEA3A68C198868434E16059413A4E5BD5EB3A68C11A92C936E1605941225C7746FA3A68C147BCA921E1605941E49C3DE8123B68C184E964FDE0605941FE87AA821A3B68C1F50EFBF1E0605941C2BA16591A3B68C11312C4C0E2605941E8ACC5C8193B68C1848C95B6E9605941AF164E57193B68C1E4175CB5F0605941ADE0D204193B68C1030DF2BAF7605941CA6056DC183B68C13C4554B9FC605941FCA886C3183B68C1062253B901615941E89667BA183B68C139D028BA06615941E62E78B7183B68C1612D445F1F615941B3321071183B68C14FECFED82C6159410789236D183B68C165EF39352D615941B7C22A65183B68C134B466902D615941F7D33559183B68C16725AFB130615941CFA6FEE9163B68C111D8661631615941E999DE9B163B68C15112D66D31615941DE3D404A163B68C1C87B53B73161594193A6C1F5153B68C1FEBD50F2316159416E7A069F153B68C16D985B1E32615941C8B4B646153B68C1B0BD1E3B3261594148607DED143B68C17B78624832615941C9E5BF020F3B68C153352CBF32615941AAE3C27FEA3A68C183B40EAE3261594119EB767CE93A68C1B4F989A932615941C8120C81E73A68C164B064B1326159
 411F66AF89E73A68C1836D233EE16059417CCD1788E93A68C1B264ED35E1605941'::geometry,3) AS geom;
+
+
 -- Clean up
 DELETE FROM spatial_ref_sys;

Modified: branches/2.2/regress/tickets_expected
===================================================================
--- branches/2.2/regress/tickets_expected	2015-11-12 19:23:12 UTC (rev 14378)
+++ branches/2.2/regress/tickets_expected	2015-11-13 20:08:40 UTC (rev 14379)
@@ -278,3 +278,4 @@
 #3172|LINESTRING M (0 0 1,0 0 2)
 #3300|POLYGON((-71.7821 42.2622,-71.7821 42.9067,-71.029 42.9067,-71.029 42.2622,-71.7821 42.2622))
 #3367|POLYGON EMPTY
+#3368|\x660001011fb98788d35ed6fbcdc831c580012b959f01469d8d0e9305ff8618ed08b1b607e302a614fe70bc4682b303b4379ab503a228eeb603e2138eb802900cc0b802ba04dab802b801a8840cb0229cca06f401c216f403a016ea05d0c301a8b301cc189226ac15ee27f811a029b40eac2ae00a902b8407c82b9e03d0e305801dfad3239504ce7e8d01e2f701f6019b04d1e2279bf901ff01



More information about the postgis-tickets mailing list