Skip to content

Commit d7ddaba

Browse files
committed
Fixed 64bit compile error
1 parent 515bec6 commit d7ddaba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Shared/sdk/SharedUtil.Hash.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ namespace SharedUtil
596596
{
597597
CMD5Hasher Hasher;
598598
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 )
600600
Hasher.Update( buf, n );
601601
Hasher.Finalize();
602602
return ConvertDataToHexString( Hasher.GetResult(), 16 );
@@ -606,7 +606,7 @@ namespace SharedUtil
606606
sha1_context ctx;
607607
sha1_init( &ctx );
608608
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 )
610610
sha1_update( &ctx, buf, n );
611611
uchar output[20];
612612
sha1_finish( &ctx, output );
@@ -617,7 +617,7 @@ namespace SharedUtil
617617
{
618618
sha224_ctx ctx;
619619
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 )
621621
sha224_update( &ctx, buf, n );
622622
uchar output[ SHA224_DIGEST_SIZE ];
623623
sha224_final( &ctx, output );
@@ -627,7 +627,7 @@ namespace SharedUtil
627627
{
628628
sha256_ctx ctx;
629629
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 )
631631
sha256_update( &ctx, buf, n );
632632
uchar output[ SHA256_DIGEST_SIZE ];
633633
sha256_final(&ctx, output);
@@ -637,7 +637,7 @@ namespace SharedUtil
637637
{
638638
sha384_ctx ctx;
639639
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 )
641641
sha384_update( &ctx, buf, n );
642642
uchar output[ SHA384_DIGEST_SIZE ];
643643
sha384_final(&ctx, output);
@@ -647,7 +647,7 @@ namespace SharedUtil
647647
{
648648
sha512_ctx ctx;
649649
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 )
651651
sha512_update( &ctx, buf, n );
652652
uchar output[ SHA512_DIGEST_SIZE ];
653653
sha512_final(&ctx, output);

0 commit comments

Comments
 (0)