From ce1d6110485ea4ff621ae9b9346becb27a47665c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 6 Nov 2025 10:00:21 -0600 Subject: [PATCH] cpukit/posix/src/mmap.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. --- cpukit/posix/src/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/posix/src/mmap.c b/cpukit/posix/src/mmap.c index 91d7780ea8..8f4915b6a6 100644 --- a/cpukit/posix/src/mmap.c +++ b/cpukit/posix/src/mmap.c @@ -286,7 +286,7 @@ void *mmap( */ r = read( fildes, mapping->addr, len ); - if ( r != len ) { + if ( r != (ssize_t) len ) { mmap_mappings_lock_release( ); if ( !map_fixed ) { free( mapping->addr );