bn/bn_lib.c address Coverity nit in bn2binpad.
authorAndy Polyakov <appro@openssl.org>
Mon, 16 Jul 2018 16:17:44 +0000 (18:17 +0200)
committerAndy Polyakov <appro@openssl.org>
Wed, 18 Jul 2018 14:05:26 +0000 (16:05 +0200)
commit821c3baa002fc874553cfacd65bd7bd6f6e9cb3f
tree62d4277c615055e9b5d2dce80a8b480f6ff0203b
parent0b139e41b4ca03c1d36f4c93c6e9147e497029ca
bn/bn_lib.c address Coverity nit in bn2binpad.

It was false positive, but one can as well view it as readability issue.
Switch even to unsigned indices because % BN_BYTES takes 4-6 instructions
with signed dividend vs. 1 (one) with unsigned.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit 83e034379fa3f6f0d308ec75fbcb137e26154aec)
crypto/bn/bn_lib.c