mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
(trunk) #3045 "make libtransmission's API byte-oriented instead of KiB-oriented." -- implemented. This is a largish commit and will break the mac build for a little while.
This commit is contained in:
@@ -327,11 +327,11 @@ test_array( void )
|
||||
int array[10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
|
||||
int n = sizeof( array ) / sizeof( array[0] );
|
||||
|
||||
tr_removeElementFromArray( array, 5, sizeof( int ), n-- );
|
||||
tr_removeElementFromArray( array, 5u, sizeof( int ), n-- );
|
||||
for( i=0; i<n; ++i )
|
||||
check( array[i] == ( i<5 ? i : i+1 ) );
|
||||
|
||||
tr_removeElementFromArray( array, 0, sizeof( int ), n-- );
|
||||
tr_removeElementFromArray( array, 0u, sizeof( int ), n-- );
|
||||
for( i=0; i<n; ++i )
|
||||
check( array[i] == ( i<4 ? i+1 : i+2 ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user