Fix for "shift count too large" when compiling for hpux-parisc2 and
[openssl.git] / crypto / bn / bn_lcl.h
index d10ec56e7e05517f750179d0b6d0d0d36e50a6f6..01cb6e92803b20ec38ea9bf9ecc62d23aa263673 100644 (file)
@@ -378,7 +378,7 @@ struct bignum_ctx
        lt=(bl)*(lt); \
        m1=(bl)*(ht); \
        ht =(bh)*(ht); \
        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++; \
        ht+=HBITS(m); \
        m1=L2HBITS(m); \
        lt=(lt+m1)&BN_MASK2; if (lt < m1) ht++; \