projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e356d9
)
Fix for "shift count too large" when compiling for hpux-parisc2 and
author
Andy Polyakov
<appro@openssl.org>
Fri, 20 Dec 2002 18:10:39 +0000
(18:10 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Fri, 20 Dec 2002 18:10:39 +0000
(18:10 +0000)
irix-mips. The bug was introduced with accelerated support for x86_64.
My fault! Fixed now.
crypto/bn/bn_lcl.h
patch
|
blob
|
history
diff --git
a/crypto/bn/bn_lcl.h
b/crypto/bn/bn_lcl.h
index fa55e5e59d051749a46a26ae197b0c37dd614c5e..bf7c12403c35ba90a8fe0a718f9548f84650d249 100644
(file)
--- a/
crypto/bn/bn_lcl.h
+++ b/
crypto/bn/bn_lcl.h
@@
-368,7
+368,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++; \