Skip to content

Commit fad06c5

Browse files
committed
cast
1 parent 088b3fb commit fad06c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/kex.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ kex_method_diffie_hellman_group_exchange_sha1_key_exchange(
15401540
goto dh_gex_clean_exit;
15411541
}
15421542

1543-
bits = _libssh2_bn_bits(key_state->p);
1543+
bits = (int)_libssh2_bn_bits(key_state->p);
15441544
if(bits < 0 || bits < LIBSSH2_DH_GEX_MINGROUP ||
15451545
bits > LIBSSH2_DH_GEX_MAXGROUP) {
15461546
ret = _libssh2_error(session, LIBSSH2_ERROR_PROTO,
@@ -1669,7 +1669,7 @@ kex_method_diffie_hellman_group_exchange_sha256_key_exchange(
16691669
goto dh_gex_clean_exit;
16701670
}
16711671

1672-
bits = _libssh2_bn_bits(key_state->p);
1672+
bits = (int)_libssh2_bn_bits(key_state->p);
16731673
if(bits < 0 || bits < LIBSSH2_DH_GEX_MINGROUP ||
16741674
bits > LIBSSH2_DH_GEX_MAXGROUP) {
16751675
ret = _libssh2_error(session, LIBSSH2_ERROR_PROTO,

0 commit comments

Comments
 (0)