mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 19:05:44 +00:00
Make signed to unsigned integer truncation cast explicit
This commit is contained in:
parent
b1aa1b3616
commit
2cdc5c3cf9
|
@ -5082,7 +5082,7 @@ static int ssl_prepare_record_content( mbedtls_ssl_context *ssl )
|
||||||
rec.data_len = ssl->in_msglen;
|
rec.data_len = ssl->in_msglen;
|
||||||
rec.data_offset = 0;
|
rec.data_offset = 0;
|
||||||
#if defined(MBEDTLS_SSL_CID )
|
#if defined(MBEDTLS_SSL_CID )
|
||||||
rec.cid_len = ssl->in_len - ssl->in_cid;
|
rec.cid_len = (uint8_t)( ssl->in_len - ssl->in_cid );
|
||||||
memcpy( rec.cid, ssl->in_cid, rec.cid_len );
|
memcpy( rec.cid, ssl->in_cid, rec.cid_len );
|
||||||
#endif /* MBEDTLS_SSL_CID */
|
#endif /* MBEDTLS_SSL_CID */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue