Review corrections 2
-Fix MSVC compiler warnings about size_t to uint32_t conversions by
updating GET/PUT functions signature to use size_t.
-Add type casts to functions calling GET/PUT conversions
-Remove additional space after return statement
diff --git a/include/mbedtls/platform_util.h b/include/mbedtls/platform_util.h
index e0c0c61..01e7f30 100644
--- a/include/mbedtls/platform_util.h
+++ b/include/mbedtls/platform_util.h
@@ -201,7 +201,7 @@
* \return Address to end of buffer where number is written.
*/
unsigned char* mbedtls_platform_put_uint32_be( unsigned char *buf,
- uint32_t num );
+ size_t num );
/**
* \brief Convert 24-bit number to big endian format.
@@ -215,7 +215,7 @@
* \return Address to end of buffer where number is written.
*/
unsigned char* mbedtls_platform_put_uint24_be( unsigned char *buf,
- uint32_t num );
+ size_t num );
/**
* \brief Convert 16-bit number to big endian format.
@@ -229,7 +229,7 @@
* \return Address to end of buffer where number is written.
*/
unsigned char* mbedtls_platform_put_uint16_be( unsigned char *buf,
- uint32_t num );
+ size_t num );
/**
* \brief Convert 32-bit number from big endian format.
@@ -241,7 +241,7 @@
*
* \return Converted number.
*/
-uint32_t mbedtls_platform_get_uint32_be( const unsigned char *buf );
+size_t mbedtls_platform_get_uint32_be( const unsigned char *buf );
/**
* \brief Convert 24-bit number from big endian format.
@@ -253,7 +253,7 @@
*
* \return Converted number.
*/
-uint32_t mbedtls_platform_get_uint24_be( const unsigned char *buf );
+size_t mbedtls_platform_get_uint24_be( const unsigned char *buf );
/**
* \brief Convert 16-bit number from big endian format.
@@ -265,7 +265,7 @@
*
* \return Converted number.
*/
-uint16_t mbedtls_platform_get_uint16_be( const unsigned char *buf );
+size_t mbedtls_platform_get_uint16_be( const unsigned char *buf );
#ifdef __cplusplus
}