Fix a casting bug with the length-independent sshbn code.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 22 Jan 2004 18:37:48 +0000 (18:37 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 22 Jan 2004 18:37:48 +0000 (18:37 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@3760 cda61777-01e9-0310-a592-d414129be87e

sshbn.c

diff --git a/sshbn.c b/sshbn.c
index 8d4d703..7fe0309 100644 (file)
--- a/sshbn.c
+++ b/sshbn.c
@@ -133,7 +133,7 @@ static void internal_add_shifted(BignumInt *number,
     int bshift = shift % BIGNUM_INT_BITS;
     BignumDblInt addend;
 
-    addend = n << bshift;
+    addend = (BignumDblInt)n << bshift;
 
     while (addend) {
        addend += number[word];