diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-12-28 17:49:22 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-12-28 17:49:22 +0000 |
commit | e9ff245dc206343640768fc0dcbe1fc57589aee4 (patch) | |
tree | d47f11c7841398a3704cbf4cb431077c1de99bfe /sys/nfs/xdr_subs.h | |
parent | 0f9ab1298a32dceabdfe3ba184d71b9258ac9184 (diff) |
Fix fxdr_hyper macro. The cast to signed int caused incorrect behavior in the shift. This only seems to have affected big endian machines.
Diffstat (limited to 'sys/nfs/xdr_subs.h')
-rw-r--r-- | sys/nfs/xdr_subs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nfs/xdr_subs.h b/sys/nfs/xdr_subs.h index eb828d93d80..6cc84bc6b6a 100644 --- a/sys/nfs/xdr_subs.h +++ b/sys/nfs/xdr_subs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: xdr_subs.h,v 1.5 1998/08/19 22:26:59 csapuntz Exp $ */ +/* $OpenBSD: xdr_subs.h,v 1.6 1998/12/28 17:49:21 millert Exp $ */ /* $NetBSD: xdr_subs.h,v 1.11 1996/02/18 11:54:12 fvdl Exp $ */ /* @@ -82,8 +82,8 @@ } #define fxdr_hyper(f) \ - ((((u_quad_t)ntohl(((int32_t *)(f))[0])) << 32) | \ - (u_quad_t)(ntohl(((int32_t *)(f))[1]))) + ((((u_quad_t)ntohl(((u_int32_t *)(f))[0])) << 32) | \ + (u_quad_t)(ntohl(((u_int32_t *)(f))[1]))) #define txdr_hyper(f, t) { \ |