[postgis-tickets] r17584 - Address compiler warning in 32b systems

Raul raul at rmr.ninja
Tue Jul 9 08:30:01 PDT 2019


Author: algunenano
Date: 2019-07-09 08:30:01 -0700 (Tue, 09 Jul 2019)
New Revision: 17584

Modified:
   trunk/postgis/geobuf.c
Log:
Address compiler warning in 32b systems



Modified: trunk/postgis/geobuf.c
===================================================================
--- trunk/postgis/geobuf.c	2019-07-08 21:08:55 UTC (rev 17583)
+++ trunk/postgis/geobuf.c	2019-07-09 15:30:01 UTC (rev 17584)
@@ -90,7 +90,7 @@
 		value->pos_int_value = (uint64_t) intval;
 	} else {
 		value->value_type_case = DATA__VALUE__VALUE_TYPE_NEG_INT_VALUE;
-		value->neg_int_value = (uint64_t) labs(intval);
+		value->neg_int_value = (uint64_t)llabs(intval);
 	}
 }
 



More information about the postgis-tickets mailing list