mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Fix various compiler warnings with MSVC
Fixes various compiler warnings found with Microsoft Visual Studio 2015 (and earlier versions).
This commit is contained in:
parent
2adecba01f
commit
3249cb780b
3 changed files with 10 additions and 9 deletions
|
|
@ -237,7 +237,7 @@ int mbedtls_platform_std_nv_seed_read( unsigned char *buf, size_t buf_len )
|
|||
}
|
||||
|
||||
fclose( file );
|
||||
return( n );
|
||||
return( (int)n );
|
||||
}
|
||||
|
||||
int mbedtls_platform_std_nv_seed_write( unsigned char *buf, size_t buf_len )
|
||||
|
|
@ -255,7 +255,7 @@ int mbedtls_platform_std_nv_seed_write( unsigned char *buf, size_t buf_len )
|
|||
}
|
||||
|
||||
fclose( file );
|
||||
return( n );
|
||||
return( (int)n );
|
||||
}
|
||||
#endif /* MBEDTLS_PLATFORM_NO_STD_FUNCTIONS */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue