mirror of
https://github.com/postgres/postgres.git
synced 2025-09-08 00:47:37 +03:00
Replace remaining uses of pq_sendint with pq_sendint{8,16,32}.
pq_sendint() remains, so extension code doesn't unnecessarily break. Author: Andres Freund Discussion: https://postgr.es/m/20170914063418.sckdzgjfrsbekae4@alap3.anarazel.de
This commit is contained in:
@@ -1433,7 +1433,7 @@ path_send(PG_FUNCTION_ARGS)
|
||||
|
||||
pq_begintypsend(&buf);
|
||||
pq_sendbyte(&buf, path->closed ? 1 : 0);
|
||||
pq_sendint(&buf, path->npts, sizeof(int32));
|
||||
pq_sendint32(&buf, path->npts);
|
||||
for (i = 0; i < path->npts; i++)
|
||||
{
|
||||
pq_sendfloat8(&buf, path->p[i].x);
|
||||
@@ -3514,7 +3514,7 @@ poly_send(PG_FUNCTION_ARGS)
|
||||
int32 i;
|
||||
|
||||
pq_begintypsend(&buf);
|
||||
pq_sendint(&buf, poly->npts, sizeof(int32));
|
||||
pq_sendint32(&buf, poly->npts);
|
||||
for (i = 0; i < poly->npts; i++)
|
||||
{
|
||||
pq_sendfloat8(&buf, poly->p[i].x);
|
||||
|
Reference in New Issue
Block a user