@@ -596,7 +596,7 @@ namespace SharedUtil
596
596
{
597
597
CMD5Hasher Hasher;
598
598
Hasher.Init ();
599
- for ( size_t n ; ( n = fread ( buf, 1 , Min ( sizeof ( buf ), uiMaxSize ), fh ) ) > 0 ; uiMaxSize -= n )
599
+ for ( size_t n ; ( n = fread ( buf, 1 , Min < uint > ( sizeof ( buf ), uiMaxSize ), fh ) ) > 0 ; uiMaxSize -= n )
600
600
Hasher.Update ( buf, n );
601
601
Hasher.Finalize ();
602
602
return ConvertDataToHexString ( Hasher.GetResult (), 16 );
@@ -606,7 +606,7 @@ namespace SharedUtil
606
606
sha1_context ctx;
607
607
sha1_init ( &ctx );
608
608
sha1_starts ( &ctx );
609
- for ( size_t n ; ( n = fread ( buf, 1 , Min ( sizeof ( buf ), uiMaxSize ), fh ) ) > 0 ; uiMaxSize -= n )
609
+ for ( size_t n ; ( n = fread ( buf, 1 , Min < uint > ( sizeof ( buf ), uiMaxSize ), fh ) ) > 0 ; uiMaxSize -= n )
610
610
sha1_update ( &ctx, buf, n );
611
611
uchar output[20 ];
612
612
sha1_finish ( &ctx, output );
@@ -617,7 +617,7 @@ namespace SharedUtil
617
617
{
618
618
sha224_ctx ctx;
619
619
sha224_init ( &ctx );
620
- for ( size_t n ; ( n = fread ( buf, 1 , Min ( sizeof ( buf ), uiMaxSize ), fh ) ) > 0 ; uiMaxSize -= n )
620
+ for ( size_t n ; ( n = fread ( buf, 1 , Min < uint > ( sizeof ( buf ), uiMaxSize ), fh ) ) > 0 ; uiMaxSize -= n )
621
621
sha224_update ( &ctx, buf, n );
622
622
uchar output[ SHA224_DIGEST_SIZE ];
623
623
sha224_final ( &ctx, output );
@@ -627,7 +627,7 @@ namespace SharedUtil
627
627
{
628
628
sha256_ctx ctx;
629
629
sha256_init (&ctx);
630
- for ( size_t n ; ( n = fread ( buf, 1 , Min ( sizeof ( buf ), uiMaxSize ), fh ) ) > 0 ; uiMaxSize -= n )
630
+ for ( size_t n ; ( n = fread ( buf, 1 , Min < uint > ( sizeof ( buf ), uiMaxSize ), fh ) ) > 0 ; uiMaxSize -= n )
631
631
sha256_update ( &ctx, buf, n );
632
632
uchar output[ SHA256_DIGEST_SIZE ];
633
633
sha256_final (&ctx, output);
@@ -637,7 +637,7 @@ namespace SharedUtil
637
637
{
638
638
sha384_ctx ctx;
639
639
sha384_init (&ctx);
640
- for ( size_t n ; ( n = fread ( buf, 1 , Min ( sizeof ( buf ), uiMaxSize ), fh ) ) > 0 ; uiMaxSize -= n )
640
+ for ( size_t n ; ( n = fread ( buf, 1 , Min < uint > ( sizeof ( buf ), uiMaxSize ), fh ) ) > 0 ; uiMaxSize -= n )
641
641
sha384_update ( &ctx, buf, n );
642
642
uchar output[ SHA384_DIGEST_SIZE ];
643
643
sha384_final (&ctx, output);
@@ -647,7 +647,7 @@ namespace SharedUtil
647
647
{
648
648
sha512_ctx ctx;
649
649
sha512_init (&ctx);
650
- for ( size_t n ; ( n = fread ( buf, 1 , Min ( sizeof ( buf ), uiMaxSize ), fh ) ) > 0 ; uiMaxSize -= n )
650
+ for ( size_t n ; ( n = fread ( buf, 1 , Min < uint > ( sizeof ( buf ), uiMaxSize ), fh ) ) > 0 ; uiMaxSize -= n )
651
651
sha512_update ( &ctx, buf, n );
652
652
uchar output[ SHA512_DIGEST_SIZE ];
653
653
sha512_final (&ctx, output);
0 commit comments