Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ac76b83

Browse files
committed
fix mtm windows build #4
1 parent b3df93a commit ac76b83

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pglogical_receiver.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@ fe_sendint64(int64 i, char *buf)
173173

174174
/* High order half first, since we're doing MSB-first */
175175
n32 = (uint32) (i >> 32);
176-
n32 = htonl(n32);
176+
n32 = pg_hton32(n32);
177177
memcpy(&buf[0], &n32, 4);
178178

179179
/* Now the low order half */
180180
n32 = (uint32) i;
181-
n32 = htonl(n32);
181+
n32 = pg_hton32(n32);
182182
memcpy(&buf[4], &n32, 4);
183183
}
184184

@@ -194,8 +194,8 @@ fe_recvint64(char *buf)
194194

195195
memcpy(&h32, buf, 4);
196196
memcpy(&l32, buf + 4, 4);
197-
h32 = ntohl(h32);
198-
l32 = ntohl(l32);
197+
h32 = pg_ntoh32(h32);
198+
l32 = pg_ntoh32(l32);
199199

200200
result = h32;
201201
result <<= 32;

0 commit comments

Comments
 (0)