@@ -654,7 +654,7 @@ array_agg_serialize(PG_FUNCTION_ARGS)
654
654
pq_sendbyte (& buf , state -> typalign );
655
655
656
656
/* dnulls */
657
- pq_sendbytes (& buf , ( char * ) state -> dnulls , sizeof (bool ) * state -> nelems );
657
+ pq_sendbytes (& buf , state -> dnulls , sizeof (bool ) * state -> nelems );
658
658
659
659
/*
660
660
* dvalues. By agreement with array_agg_deserialize, when the element
@@ -664,8 +664,7 @@ array_agg_serialize(PG_FUNCTION_ARGS)
664
664
* must be sent first).
665
665
*/
666
666
if (state -> typbyval )
667
- pq_sendbytes (& buf , (char * ) state -> dvalues ,
668
- sizeof (Datum ) * state -> nelems );
667
+ pq_sendbytes (& buf , state -> dvalues , sizeof (Datum ) * state -> nelems );
669
668
else
670
669
{
671
670
SerialIOData * iodata ;
@@ -1097,7 +1096,7 @@ array_agg_array_serialize(PG_FUNCTION_ARGS)
1097
1096
if (state -> nullbitmap )
1098
1097
{
1099
1098
Assert (state -> aitems > 0 );
1100
- pq_sendbytes (& buf , ( char * ) state -> nullbitmap , (state -> aitems + 7 ) / 8 );
1099
+ pq_sendbytes (& buf , state -> nullbitmap , (state -> aitems + 7 ) / 8 );
1101
1100
}
1102
1101
1103
1102
/* nitems */
@@ -1107,10 +1106,10 @@ array_agg_array_serialize(PG_FUNCTION_ARGS)
1107
1106
pq_sendint32 (& buf , state -> ndims );
1108
1107
1109
1108
/* dims: XXX should we just send ndims elements? */
1110
- pq_sendbytes (& buf , ( char * ) state -> dims , sizeof (state -> dims ));
1109
+ pq_sendbytes (& buf , state -> dims , sizeof (state -> dims ));
1111
1110
1112
1111
/* lbs */
1113
- pq_sendbytes (& buf , ( char * ) state -> lbs , sizeof (state -> lbs ));
1112
+ pq_sendbytes (& buf , state -> lbs , sizeof (state -> lbs ));
1114
1113
1115
1114
result = pq_endtypsend (& buf );
1116
1115
0 commit comments