diff options
author | marha <marha@users.sourceforge.net> | 2011-03-07 16:16:30 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-03-07 16:16:30 +0000 |
commit | c1fc9700f5eddaf2cea1efd8bd1e67a1e9c8030d (patch) | |
tree | a3ed093721c50e42adafbbb87c9529c69e3195e4 /tools/plink/sshbn.c | |
parent | 41467367b93dff68246a6656d82e892184a520ea (diff) | |
download | vcxsrv-c1fc9700f5eddaf2cea1efd8bd1e67a1e9c8030d.tar.gz vcxsrv-c1fc9700f5eddaf2cea1efd8bd1e67a1e9c8030d.tar.bz2 vcxsrv-c1fc9700f5eddaf2cea1efd8bd1e67a1e9c8030d.zip |
Solved debug compilation
Diffstat (limited to 'tools/plink/sshbn.c')
-rw-r--r-- | tools/plink/sshbn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/plink/sshbn.c b/tools/plink/sshbn.c index e9ff0cde4..0fe27ec7d 100644 --- a/tools/plink/sshbn.c +++ b/tools/plink/sshbn.c @@ -151,7 +151,7 @@ static void internal_mul(BignumInt *a, BignumInt *b, for (j = len - 1; j >= 0; j--) {
t += MUL_WORD(a[i], (BignumDblInt) b[j]);
t += (BignumDblInt) c[i + j + 1];
- c[i + j + 1] = (BignumInt) t;
+ c[i + j + 1] = (BignumInt) (t & 0xffffffff);
t = t >> BIGNUM_INT_BITS;
}
c[i] = (BignumInt) t;
@@ -257,9 +257,9 @@ static void internal_mod(BignumInt *a, int alen, t = MUL_WORD(q, m[k]);
t += c;
c = (unsigned)(t >> BIGNUM_INT_BITS);
- if ((BignumInt) t > a[i + k])
+ if (((BignumInt)(t&0xffffffff)) > a[i + k])
c++;
- a[i + k] -= (BignumInt) t;
+ a[i + k] -= (BignumInt) (t&0xffffffff);
}
/* Add back m in case of borrow */
|