- Removed deprecated casts to int for now unsigned values

diff --git a/library/sha2.c b/library/sha2.c
index 385c048..9cc88e8 100644
--- a/library/sha2.c
+++ b/library/sha2.c
@@ -346,7 +346,7 @@
     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 );