Portability fix for broken compilers.
authormdw <mdw>
Sat, 17 Jun 2000 11:23:27 +0000 (11:23 +0000)
committermdw <mdw>
Sat, 17 Jun 2000 11:23:27 +0000 (11:23 +0000)
hash.h

diff --git a/hash.h b/hash.h
index 5b7f0c3..1d659d3 100644 (file)
--- 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)                         \