diff options
author | Ulf Möller <ulf@openssl.org> | 2000-12-02 20:51:47 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 2000-12-02 20:51:47 +0000 |
commit | b26f84cbbd7664bbacf253ee820c06b872d0febf (patch) | |
tree | 119e309b91d827e87ab4d468ae0a7271f0296406 /crypto/bn/bn_lib.c | |
parent | 0dba0613ea50e36fb23e327dbbf835475d00beab (diff) |
last commit was wrong. Now it works. :)
Diffstat (limited to 'crypto/bn/bn_lib.c')
-rw-r--r-- | crypto/bn/bn_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bn/bn_lib.c b/crypto/bn/bn_lib.c index af8ec34a49..658a491763 100644 --- a/crypto/bn/bn_lib.c +++ b/crypto/bn/bn_lib.c @@ -786,9 +786,9 @@ int bn_cmp_part_words(const BN_ULONG *a, const BN_ULONG *b, if (dl < 0) { - for (i=-dl; i<0; i++) + for (i=dl; i<0; i++) { - if (b[n+i] != 0) + if (b[n-i] != 0) return -1; /* a < b */ } } |