diff options
author | Richard Levitte <levitte@openssl.org> | 2000-11-21 23:29:55 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-11-21 23:29:55 +0000 |
commit | c799770060faa61084d6be4e4dbeb7485a15c412 (patch) | |
tree | 30d70d2f7c330f6c6ec30a6c6aea852d31ae274c /crypto | |
parent | cd26e6c79d1251262ad1742efb1510e1b7a900d3 (diff) |
Avoid getting warnings about unary - being used on unsigned integer.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/bn/bn_mul.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/bn/bn_mul.c b/crypto/bn/bn_mul.c index f730e5d2bf..02273549a0 100644 --- a/crypto/bn/bn_mul.c +++ b/crypto/bn/bn_mul.c @@ -106,22 +106,22 @@ BN_ULONG bn_sub_part_words(BN_ULONG *r, for (;;) { t = b[0]; - r[0] = (-t-c)&BN_MASK2; + r[0] = (0-t-c)&BN_MASK2; if (t != 0) c=1; if (++dl >= 0) break; t = b[1]; - r[1] = (-t-c)&BN_MASK2; + r[1] = (0-t-c)&BN_MASK2; if (t != 0) c=1; if (++dl >= 0) break; t = b[2]; - r[2] = (-t-c)&BN_MASK2; + r[2] = (0-t-c)&BN_MASK2; if (t != 0) c=1; if (++dl >= 0) break; t = b[3]; - r[3] = (-t-c)&BN_MASK2; + r[3] = (0-t-c)&BN_MASK2; if (t != 0) c=1; if (++dl >= 0) break; |