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:04:24 +0000 (16:04 +0200)
commit83e034379fa3f6f0d308ec75fbcb137e26154aec
treecec5c3e9196a2f45cd2a60f1a8b0b269bacb4410
parent9e6a32025e6e69949ad3e53a29a0b85f61f30b85
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>
crypto/bn/bn_lib.c