Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/netpgp/dist/src/libbn fix some lint on i...
details: https://anonhg.NetBSD.org/src/rev/132800ad9cd3
branches: trunk
changeset: 785541:132800ad9cd3
user: agc <agc%NetBSD.org@localhost>
date: Tue Mar 19 01:00:16 2013 +0000
description:
fix some lint on i386, noticed by Greg Troxel, thanks!
diffstat:
crypto/external/bsd/netpgp/dist/src/libbn/bignum.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r 6c5fd6b03289 -r 132800ad9cd3 crypto/external/bsd/netpgp/dist/src/libbn/bignum.c
--- a/crypto/external/bsd/netpgp/dist/src/libbn/bignum.c Mon Mar 18 21:00:52 2013 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/libbn/bignum.c Tue Mar 19 01:00:16 2013 +0000
@@ -1394,7 +1394,7 @@
if ((res = mp_copy (&y, &v)) != MP_OKAY) {
goto LBL_ERR;
}
- mp_set (&D, 1);
+ mp_set (&D, (unsigned long)1);
top:
/* 4. while u is even do */
@@ -1463,7 +1463,7 @@
/* now a = C, b = D, gcd == g*v */
/* if v != 1 then there is no inverse */
- if (mp_cmp_d (&v, 1) != MP_EQ) {
+ if (mp_cmp_d (&v, (unsigned long)1) != MP_EQ) {
res = MP_VAL;
goto LBL_ERR;
}
@@ -1522,8 +1522,8 @@
if ((res = mp_copy (&y, &v)) != MP_OKAY) {
goto LBL_ERR;
}
- mp_set (&A, 1);
- mp_set (&D, 1);
+ mp_set (&A, (unsigned long)1);
+ mp_set (&D, (unsigned long)1);
top:
/* 4. while u is even do */
Home |
Main Index |
Thread Index |
Old Index