From 6888167e73c964510109cfe264367173f43a171b Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Tue, 15 Oct 2013 13:24:01 +0200 Subject: [PATCH] Forced cast to prevent MSVC compiler warning --- library/ssl_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ssl_cli.c b/library/ssl_cli.c index b3521d318..bb2afb262 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c @@ -1886,7 +1886,7 @@ static int ssl_write_client_key_exchange( ssl_context *ssl ) ssl->out_msg[i++] = (unsigned char)( n ); ret = dhm_make_public( &ssl->handshake->dhm_ctx, - mpi_size( &ssl->handshake->dhm_ctx.P ), + (int) mpi_size( &ssl->handshake->dhm_ctx.P ), &ssl->out_msg[i], n, ssl->f_rng, ssl->p_rng ); if( ret != 0 )