mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 16:45:41 +01:00
- Minor update in types to prevent compiler warning under VS2010
This commit is contained in:
parent
73206954d4
commit
b8213a1298
@ -227,12 +227,12 @@ static void sha4_process( sha4_context *ctx, const unsigned char data[128] )
|
|||||||
void sha4_update( sha4_context *ctx, const unsigned char *input, size_t ilen )
|
void sha4_update( sha4_context *ctx, const unsigned char *input, size_t ilen )
|
||||||
{
|
{
|
||||||
size_t fill;
|
size_t fill;
|
||||||
unsigned int64 left;
|
unsigned int left;
|
||||||
|
|
||||||
if( ilen <= 0 )
|
if( ilen <= 0 )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
left = ctx->total[0] & 0x7F;
|
left = (unsigned int) (ctx->total[0] & 0x7F);
|
||||||
fill = 128 - left;
|
fill = 128 - left;
|
||||||
|
|
||||||
ctx->total[0] += (unsigned int64) ilen;
|
ctx->total[0] += (unsigned int64) ilen;
|
||||||
|
Loading…
Reference in New Issue
Block a user