mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-02-04 12:41:34 +00:00
libtests/tar01/init.c: Correct comparisons of different signedness
The GCC warning -Wsign-compare flagged these instances of comparing signed and unsigned types. A common pair was size_t and int.
This commit is contained in:
committed by
Kinsey Moore
parent
fa2e0e7e58
commit
16234ea47b
@@ -233,7 +233,7 @@ void test_untar_from_file(void)
|
||||
rtems_test_assert( fd != -1 );
|
||||
|
||||
n = write( fd, TARFILE_START, TARFILE_SIZE );
|
||||
rtems_test_assert( n == TARFILE_SIZE );
|
||||
rtems_test_assert( n == (ssize_t) TARFILE_SIZE );
|
||||
close( fd );
|
||||
|
||||
/* make a directory to untar it into */
|
||||
|
||||
Reference in New Issue
Block a user