From c91185b525d7bb2ea7f2d21d1bfb0fea398fa767 Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Fri, 1 Jul 1994 00:03:50 +0000 Subject: [PATCH] fix to vaxtohl from grossa@SDSC.EDU git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3931 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/des425/quad_cksum.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/des425/quad_cksum.c b/src/lib/des425/quad_cksum.c index 52ee722a0..045c2134a 100644 --- a/src/lib/des425/quad_cksum.c +++ b/src/lib/des425/quad_cksum.c @@ -98,10 +98,10 @@ static char rcsid_quad_cksum_c[] = /* vax byte order is LSB first. This is not performance critical, and is far more readable this way. */ -#define four_bytes_vax_to_nets(x) (((x[3]<<8|x[2])<<8|x[1]<<8)|x[0]) -#define vaxtohl(x) four_bytes_vax_to_nets(((char *)(x))) +#define four_bytes_vax_to_nets(x) ((((((x[3]<<8)|x[2])<<8)|x[1])<<8)|x[0]) +#define vaxtohl(x) four_bytes_vax_to_nets(((unsigned char *)(x))) #define two_bytes_vax_to_nets(x) ((x[1]<<8)|x[0]) -#define vaxtohs(x) two_bytes_vax_to_nets(((char *)(x))) +#define vaxtohs(x) two_bytes_vax_to_nets(((unsigned char *)(x))) /* Externals */ extern char *errmsg(); -- 2.26.2