提交 cf883677 编写于 作者: M Marc G. Fournier

From: David Friend <dfriend@atlsci.atlsci.com>

Subject: [PATCHES] pqcomprim.c patch

This is the patch by Robert Bruccoleri to fix the endian problem.
(Actually, it's the reverse of his patch.  He must have gotten the
order wrong.)
上级 ca746f51
......@@ -28,7 +28,7 @@
# define ntoh_l(n) (u_long)(((u_char *)&n)[0] << 24 | \
((u_char *)&n)[1] << 16 | \
((u_char *)&n)[2] << 8 | ((u_char *)&n)[3])
# define hton_s(n) (ntoh_s(n))
# define hton_s(n) (u_short)(((u_char *) &n)[2] << 8 | ((u_char *) &n)[3])
# define hton_l(n) (ntoh_l(n))
# else /* BYTE_ORDER != BIG_ENDIAN */
# if BYTE_ORDER == PDP_ENDIAN
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册