From 9a707709771d218b8734bac4e345d966c90c3fc9 Mon Sep 17 00:00:00 2001 From: mdw Date: Sat, 17 Jun 2000 11:23:27 +0000 Subject: [PATCH] Portability fix for broken compilers. --- hash.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hash.h b/hash.h index 5b7f0c3..1d659d3 100644 --- a/hash.h +++ b/hash.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: hash.h,v 1.2 1999/12/10 23:16:40 mdw Exp $ + * $Id: hash.h,v 1.3 2000/06/17 11:23:27 mdw Exp $ * * Generic handling for message digest functions * @@ -30,6 +30,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: hash.h,v $ + * Revision 1.3 2000/06/17 11:23:27 mdw + * Portability fix for broken compilers. + * * Revision 1.2 1999/12/10 23:16:40 mdw * Split mode macros into interface and implementation. * @@ -80,7 +83,8 @@ */ \ \ { \ - uint32 _l = U32(_bsz), _h = (_bsz >> 16) >> 16; \ + uint32 _l = U32(_bsz); \ + uint32 _h = ((_bsz & ~MASK32) >> 16) >> 16; \ _bctx->nh += _h; \ _bctx->nl += _l; \ if (_bctx->nl < _l || _bctx->nl & ~MASK32) \ -- 2.11.0