Fix math in BN_bn2dec comment.
authorDavid Benjamin <davidben@google.com>
Tue, 23 Aug 2016 05:39:24 +0000 (22:39 -0700)
committerMatt Caswell <matt@openssl.org>
Tue, 23 Aug 2016 19:37:58 +0000 (20:37 +0100)
commit2338ad88859313922e3a861e07aec441a90464de
tree7919eeff62d51a8f4e2baf70a78f4a1dd748acaf
parentfa515410aae2cf4ced2cf41cc6715fee6c6db344
Fix math in BN_bn2dec comment.

The bound on log(2)/3 on the second line is incorrect and has an extra
zero compared to the divisions in the third line. log(2)/3 = 0.10034...
which is bounded by 0.101 and not 0.1001. The divisions actually
correspond to 0.101 which is fine. The third line also dropped a factor
of three.

The actual code appears to be fine. Just the comments are wrong.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
crypto/bn/bn_print.c