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>
Fri, 10 Aug 2018 19:08:15 +0000 (21:08 +0200)
commitdf6b67becc1f41c2eeee7e20ff10b5ec42ced58b
treef1a8bc67c407b0a900a7fd87c355459a36a7123b
parent6412738be390dd9bf680cef89f22e4c810ab065f
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>
(Merged from https://github.com/openssl/openssl/pull/6889)

(cherry picked from commit 83e034379fa3f6f0d308ec75fbcb137e26154aec)
crypto/bn/bn_lib.c