Apply a small patch from Oscar Jacobsson <oscar@jacobsson.org> that

makes things more compilable with VC++.
This commit is contained in:
Richard Levitte 2002-01-26 04:50:41 +00:00
parent f6fbd470e3
commit b77fcddb6b
2 changed files with 2 additions and 2 deletions

View File

@ -614,7 +614,7 @@ static long conn_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp)
{
case BIO_CTRL_SET_CALLBACK:
{
data->info_callback=(int (*)())fp;
data->info_callback=(int (*)(const struct bio_st *, int, int))fp;
}
break;
default:

View File

@ -336,7 +336,7 @@ int EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
for (i = 0; i < totalnum; i++)
{
if (wNAF_len[i] > k)
if (wNAF_len[i] > (size_t)k)
{
int digit = wNAF[i][k];
int is_neg;