- Removed deprecated casts to int for now unsigned values
This commit is contained in:
parent
887bd502d2
commit
27fdf46d16
9 changed files with 34 additions and 32 deletions
|
@ -346,7 +346,7 @@ int sha2_file( const char *path, unsigned char output[32], int is224 )
|
|||
sha2_starts( &ctx, is224 );
|
||||
|
||||
while( ( n = fread( buf, 1, sizeof( buf ), f ) ) > 0 )
|
||||
sha2_update( &ctx, buf, (int) n );
|
||||
sha2_update( &ctx, buf, n );
|
||||
|
||||
sha2_finish( &ctx, output );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue