From: simon Date: Thu, 22 Jan 2004 18:37:48 +0000 (+0000) Subject: Fix a casting bug with the length-independent sshbn code. X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/3014da2b1f6b65da7a730050ee1a451acb9a47ba Fix a casting bug with the length-independent sshbn code. git-svn-id: svn://svn.tartarus.org/sgt/putty@3760 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/sshbn.c b/sshbn.c index 8d4d703c..7fe0309a 100644 --- 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];