X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/98ba26b92452911f8f6b9cfccd134a4836218904..d3a22f7952add0b13fac029efb18faae537795bd:/sshbn.c 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; }