Fix MSVC warning.
This commit is contained in:
parent
3c95046d03
commit
7d75c147a2
|
@ -124,7 +124,7 @@ static void test__hwrite( void )
|
|||
srand( (unsigned)time( NULL ) );
|
||||
for (blocks = 0; blocks < 100; blocks++)
|
||||
{
|
||||
for (i = 0; i < sizeof( buffer ); i++)
|
||||
for (i = 0; i < (long)sizeof( buffer ); i++)
|
||||
{
|
||||
buffer[i] = rand( );
|
||||
checksum[0] = checksum[0] + buffer[i];
|
||||
|
@ -459,7 +459,7 @@ static void test__lwrite( void )
|
|||
srand( (unsigned)time( NULL ) );
|
||||
for (blocks = 0; blocks < 100; blocks++)
|
||||
{
|
||||
for (i = 0; i < sizeof( buffer ); i++)
|
||||
for (i = 0; i < (long)sizeof( buffer ); i++)
|
||||
{
|
||||
buffer[i] = rand( );
|
||||
checksum[0] = checksum[0] + buffer[i];
|
||||
|
|
Loading…
Reference in New Issue