Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcf88367

Browse files
committed
From: David Friend <dfriend@atlsci.atlsci.com>
Subject: [PATCHES] pqcomprim.c patchThis is the patch by Robert Bruccoleri to fix the endian problem.(Actually, it's the reverse of his patch. He must have gotten theorder wrong.)
1 parentca746f5 commitcf88367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/libpq/pqcomprim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# definentoh_l(n) (u_long)(((u_char *)&n)[0] << 24 | \
2929
((u_char *)&n)[1] << 16 | \
3030
((u_char *)&n)[2] << 8 | ((u_char *)&n)[3])
31-
# definehton_s(n) (ntoh_s(n))
31+
# definehton_s(n) (u_short)(((u_char *) &n)[2] << 8 | ((u_char *) &n)[3])
3232
# definehton_l(n) (ntoh_l(n))
3333
# else/* BYTE_ORDER != BIG_ENDIAN */
3434
# ifBYTE_ORDER==PDP_ENDIAN

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp