Skip to content
代码片段 群组 项目
提交 14db5122 编辑于 作者: Glenn Strauss's avatar Glenn Strauss 提交者: Dave Rodgman
浏览文件

Fix IAR warning

上级 cd0a5656
No related tags found
无相关合并请求
......@@ -1197,9 +1197,9 @@ static mbedtls_mpi_uint mbedtls_int_div_int( mbedtls_mpi_uint u1,
*/
if( 0 == d || u1 >= d )
{
if (r != NULL) *r = ~0;
if (r != NULL) *r = ~(mbedtls_mpi_uint)0u;
return ( ~0 );
return ( ~(mbedtls_mpi_uint)0u );
}
#if defined(MBEDTLS_HAVE_UDBL)
......@@ -1338,7 +1338,7 @@ int mbedtls_mpi_div_mpi( mbedtls_mpi *Q, mbedtls_mpi *R, const mbedtls_mpi *A,
for( i = n; i > t ; i-- )
{
if( X.p[i] >= Y.p[t] )
Z.p[i - t - 1] = ~0;
Z.p[i - t - 1] = ~(mbedtls_mpi_uint)0u;
else
{
Z.p[i - t - 1] = mbedtls_int_div_int( X.p[i], X.p[i - 1],
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册