From: Andy Polyakov Date: Fri, 20 Dec 2002 18:11:30 +0000 (+0000) Subject: Fix for "shift count too large" when compiling for hpux-parisc2 and X-Git-Tag: OpenSSL_0_9_7a~86^2~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=316bfb77b596041ab2252817b7bfaa9ae920a37a;p=thirdparty%2Fopenssl.git Fix for "shift count too large" when compiling for hpux-parisc2 and irix-mips. The bug was introduced with accelerated support for x86_64. My fault! Fixed now. --- diff --git a/crypto/bn/bn_lcl.h b/crypto/bn/bn_lcl.h index d10ec56e7e0..01cb6e92803 100644 --- a/crypto/bn/bn_lcl.h +++ b/crypto/bn/bn_lcl.h @@ -378,7 +378,7 @@ struct bignum_ctx lt=(bl)*(lt); \ m1=(bl)*(ht); \ ht =(bh)*(ht); \ - m=(m+m1)&BN_MASK2; if (m < m1) ht+=L2HBITS(1L); \ + m=(m+m1)&BN_MASK2; if (m < m1) ht+=L2HBITS((BN_ULONG)1); \ ht+=HBITS(m); \ m1=L2HBITS(m); \ lt=(lt+m1)&BN_MASK2; if (lt < m1) ht++; \