diff options
Diffstat (limited to 'src/lib/libcrypto/bn/bn_mul.c')
| -rw-r--r-- | src/lib/libcrypto/bn/bn_mul.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/bn_mul.c b/src/lib/libcrypto/bn/bn_mul.c index cb93ac3356..3ae3822bc2 100644 --- a/src/lib/libcrypto/bn/bn_mul.c +++ b/src/lib/libcrypto/bn/bn_mul.c | |||
| @@ -224,7 +224,7 @@ void bn_mul_part_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int tn, | |||
| 224 | int n, BN_ULONG *t) | 224 | int n, BN_ULONG *t) |
| 225 | { | 225 | { |
| 226 | int i,j,n2=n*2; | 226 | int i,j,n2=n*2; |
| 227 | unsigned int c1,c2,neg,zero; | 227 | int c1,c2,neg,zero; |
| 228 | BN_ULONG ln,lo,*p; | 228 | BN_ULONG ln,lo,*p; |
| 229 | 229 | ||
| 230 | # ifdef BN_COUNT | 230 | # ifdef BN_COUNT |
| @@ -376,7 +376,7 @@ void bn_mul_part_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int tn, | |||
| 376 | 376 | ||
| 377 | /* The overflow will stop before we over write | 377 | /* The overflow will stop before we over write |
| 378 | * words we should not overwrite */ | 378 | * words we should not overwrite */ |
| 379 | if (ln < c1) | 379 | if (ln < (BN_ULONG)c1) |
| 380 | { | 380 | { |
| 381 | do { | 381 | do { |
| 382 | p++; | 382 | p++; |
