Module Name: src Committed By: agc Date: Tue Mar 19 01:00:17 UTC 2013
Modified Files: src/crypto/external/bsd/netpgp/dist/src/libbn: bignum.c Log Message: fix some lint on i386, noticed by Greg Troxel, thanks! To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 \ src/crypto/external/bsd/netpgp/dist/src/libbn/bignum.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/crypto/external/bsd/netpgp/dist/src/libbn/bignum.c diff -u src/crypto/external/bsd/netpgp/dist/src/libbn/bignum.c:1.4 src/crypto/external/bsd/netpgp/dist/src/libbn/bignum.c:1.5 --- src/crypto/external/bsd/netpgp/dist/src/libbn/bignum.c:1.4 Thu Nov 22 00:37:55 2012 +++ src/crypto/external/bsd/netpgp/dist/src/libbn/bignum.c Tue Mar 19 01:00:16 2013 @@ -1394,7 +1394,7 @@ fast_mp_invmod (mp_int * a, mp_int * b, 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 @@ top: /* 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 @@ mp_invmod_slow (mp_int * a, mp_int * b, 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 */