Skip to content

Commit

Permalink
Minor clean-up in bn_lib.c: constification and optimization.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Polyakov committed Oct 28, 2008
1 parent b764f82 commit f1455b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crypto/bn/bn_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ int BN_get_params(int which)

const BIGNUM *BN_value_one(void)
{
static BN_ULONG data_one=1L;
static BIGNUM const_one={&data_one,1,1,0,BN_FLG_STATIC_DATA};
static const BN_ULONG data_one=1L;
static const BIGNUM const_one={(BN_ULONG *)&data_one,1,1,0,BN_FLG_STATIC_DATA};

return(&const_one);
}
Expand All @@ -160,7 +160,7 @@ char *BN_options(void)

int BN_num_bits_word(BN_ULONG l)
{
static const char bits[256]={
static const unsigned char bits[256]={
0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4,
5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
Expand Down

0 comments on commit f1455b3

Please sign in to comment.