lwout_wkb.c:288:16: runtime error: implicit conversion from type 'char' of value -16 (8-bit, signed) to type 'uint8_t' (aka 'unsigned char') changed the value to 240 (8-bit, unsigned)
lwout_wkb.c:654:27: runtime error: implicit conversion from type 'uint32_t' (aka 'unsigned int') of value
2147483663 (32-bit, unsigned) to type 'int' changed the value to -
2147483633 (32-bit, signed)
lwout_wkb.c:213:16: runtime error: implicit conversion from type 'char' of value -128 (8-bit, signed) to type 'uint8_t' (aka 'unsigned char') changed the value to 128 (8-bit, unsigned)
lwout_wkb.c:607:27: runtime error: implicit conversion from type 'uint32_t' (aka 'unsigned int') of value
2147483651 (32-bit, unsigned) to type 'int' changed the value to -
2147483645 (32-bit, signed)
References #4383
git-svn-id: http://svn.osgeo.org/postgis/trunk@17412
b70326c6-7e19-0410-871a-
916f4a2858ee
/*
* Integer32
*/
-static uint8_t* integer_to_wkb_buf(const int ival, uint8_t *buf, uint8_t variant)
+static uint8_t *
+integer_to_wkb_buf(const uint32_t ival, uint8_t *buf, uint8_t variant)
{
- char *iptr = (char*)(&ival);
+ uint8_t *iptr = (uint8_t *)(&ival);
int i = 0;
if ( sizeof(int) != WKB_INT_SIZE )
*/
static uint8_t* double_to_wkb_buf(const double d, uint8_t *buf, uint8_t variant)
{
- char *dptr = (char*)(&d);
+ uint8_t *dptr = (uint8_t *)(&d);
int i = 0;
if ( sizeof(double) != WKB_DOUBLE_SIZE )