From 16234ea47b0e3d86bc3951e944cc91852e8be615 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 6 Nov 2025 10:27:40 -0600 Subject: [PATCH] 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. --- testsuites/libtests/tar01/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuites/libtests/tar01/init.c b/testsuites/libtests/tar01/init.c index 4c1a40b388..e012ca6df2 100644 --- a/testsuites/libtests/tar01/init.c +++ b/testsuites/libtests/tar01/init.c @@ -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 */