X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/98ba26b92452911f8f6b9cfccd134a4836218904..b96dc54c8cb132b360e4952be746a627622e0950:/sshbn.c?ds=sidebyside diff --git a/sshbn.c b/sshbn.c index 3a5ddc03..1bd3f434 100644 --- a/sshbn.c +++ b/sshbn.c @@ -68,7 +68,7 @@ void freebn(Bignum b) { } Bignum bn_power_2(int n) { - Bignum ret = newbn((n+15)/16); + Bignum ret = newbn(n/16+1); bignum_set_bit(ret, n, 1); return ret; }