[postgis-tickets] r14903 - Quiet compile warning on printf(%d) on long int

Paul Ramsey pramsey at cleverelephant.ca
Sun May 15 08:09:20 PDT 2016


Author: pramsey
Date: 2016-05-15 08:09:20 -0700 (Sun, 15 May 2016)
New Revision: 14903

Modified:
   trunk/topology/postgis_topology.c
Log:
Quiet compile warning on printf(%d) on long int


Modified: trunk/topology/postgis_topology.c
===================================================================
--- trunk/topology/postgis_topology.c	2016-05-13 20:01:22 UTC (rev 14902)
+++ trunk/topology/postgis_topology.c	2016-05-15 15:09:20 UTC (rev 14903)
@@ -1346,7 +1346,7 @@
   if ( SPI_processed ) topo->be_data->data_changed = true;
 
   if ( SPI_processed != numelems ) {
-		cberror(topo->be_data, "processed %d rows, expected %d",
+		cberror(topo->be_data, "processed %ld rows, expected %d",
             SPI_processed, numelems);
 	  return 0;
   }
@@ -1401,7 +1401,7 @@
   if ( SPI_processed ) topo->be_data->data_changed = true;
   POSTGIS_DEBUGF(1, "cb_insertEdges query processed %d rows", SPI_processed);
   if ( SPI_processed != numelems ) {
-		cberror(topo->be_data, "processed %d rows, expected %d",
+		cberror(topo->be_data, "processed %ld rows, expected %d",
             SPI_processed, numelems);
 	  return -1;
   }
@@ -1457,7 +1457,7 @@
   if ( SPI_processed ) topo->be_data->data_changed = true;
   POSTGIS_DEBUGF(1, "cb_insertFaces query processed %d rows", SPI_processed);
   if ( SPI_processed != numelems ) {
-		cberror(topo->be_data, "processed %d rows, expected %d",
+		cberror(topo->be_data, "processed %ld rows, expected %d",
             SPI_processed, numelems);
 	  return -1;
   }
@@ -1821,7 +1821,7 @@
   if ( SPI_processed ) topo->be_data->data_changed = true;
 
   if ( SPI_processed != 1 ) {
-		cberror(topo->be_data, "processed %d rows, expected 1", SPI_processed);
+		cberror(topo->be_data, "processed %ld rows, expected 1", SPI_processed);
 	  return -1;
   }
 



More information about the postgis-tickets mailing list