We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3df93a commit ac76b83Copy full SHA for ac76b83
src/pglogical_receiver.c
@@ -173,12 +173,12 @@ fe_sendint64(int64 i, char *buf)
173
174
/* High order half first, since we're doing MSB-first */
175
n32 = (uint32) (i >> 32);
176
- n32 = htonl(n32);
+ n32 = pg_hton32(n32);
177
memcpy(&buf[0], &n32, 4);
178
179
/* Now the low order half */
180
n32 = (uint32) i;
181
182
memcpy(&buf[4], &n32, 4);
183
}
184
@@ -194,8 +194,8 @@ fe_recvint64(char *buf)
194
195
memcpy(&h32, buf, 4);
196
memcpy(&l32, buf + 4, 4);
197
- h32 = ntohl(h32);
198
- l32 = ntohl(l32);
+ h32 = pg_ntoh32(h32);
+ l32 = pg_ntoh32(l32);
199
200
result = h32;
201
result <<= 32;
0 commit comments