aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-12-04 17:46:34 +0100
committermarha <marha@users.sourceforge.net>2012-12-04 17:46:34 +0100
commit2216ff5b2619bb1ff722815df02fae8b87efa327 (patch)
treeb41e3eed9ba812acd1f6a945bbe2094769b2e822 /tools
parent33f84f71784699f4b6d914f986efdcc08a8be0f7 (diff)
downloadvcxsrv-2216ff5b2619bb1ff722815df02fae8b87efa327.tar.gz
vcxsrv-2216ff5b2619bb1ff722815df02fae8b87efa327.tar.bz2
vcxsrv-2216ff5b2619bb1ff722815df02fae8b87efa327.zip
Solved runtime errors in debug version
Diffstat (limited to 'tools')
-rw-r--r--tools/plink/sshbn.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/plink/sshbn.c b/tools/plink/sshbn.c
index bf149cd77..5c1870876 100644
--- a/tools/plink/sshbn.c
+++ b/tools/plink/sshbn.c
@@ -599,7 +599,7 @@ static void internal_add_shifted(BignumInt *number,
while (addend) {
addend += number[word];
- number[word] = (BignumInt) addend & BIGNUM_INT_MASK;
+ number[word] = (BignumInt) (addend & BIGNUM_INT_MASK);
addend >>= BIGNUM_INT_BITS;
word++;
}
@@ -1430,7 +1430,7 @@ Bignum bigadd(Bignum a, Bignum b)
for (i = 1; i <= rlen; i++) {
carry += (i <= (int)a[0] ? a[i] : 0);
carry += (i <= (int)b[0] ? b[i] : 0);
- ret[i] = (BignumInt) carry & BIGNUM_INT_MASK;
+ ret[i] = (BignumInt) (carry & BIGNUM_INT_MASK);
carry >>= BIGNUM_INT_BITS;
if (ret[i] != 0 && i > maxspot)
maxspot = i;
@@ -1460,7 +1460,7 @@ Bignum bigsub(Bignum a, Bignum b)
for (i = 1; i <= rlen; i++) {
carry += (i <= (int)a[0] ? a[i] : 0);
carry += (i <= (int)b[0] ? b[i] ^ BIGNUM_INT_MASK : BIGNUM_INT_MASK);
- ret[i] = (BignumInt) carry & BIGNUM_INT_MASK;
+ ret[i] = (BignumInt) (carry & BIGNUM_INT_MASK);
carry >>= BIGNUM_INT_BITS;
if (ret[i] != 0 && i > maxspot)
maxspot = i;
@@ -1529,7 +1529,7 @@ Bignum bignum_add_long(Bignum number, unsigned long addendx)
carry += addend & BIGNUM_INT_MASK;
carry += (i <= (int)number[0] ? number[i] : 0);
addend >>= BIGNUM_INT_BITS;
- ret[i] = (BignumInt) carry & BIGNUM_INT_MASK;
+ ret[i] = (BignumInt) (carry & BIGNUM_INT_MASK);
carry >>= BIGNUM_INT_BITS;
if (ret[i] != 0)
maxspot = i;