[rtems commit] psxsem01: Fix warning

Sebastian Huber sebh at rtems.org
Tue Feb 14 10:13:08 UTC 2017


Module:    rtems
Branch:    master
Commit:    ecf53c8dd5861841982bf26c0a1060a5f7cb3285
Changeset: http://git.rtems.org/rtems/commit/?id=ecf53c8dd5861841982bf26c0a1060a5f7cb3285

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Feb 14 09:57:22 2017 +0100

psxsem01: Fix warning

---

 testsuites/psxtests/psxsem01/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuites/psxtests/psxsem01/init.c b/testsuites/psxtests/psxsem01/init.c
index 023f79a..8601f92 100644
--- a/testsuites/psxtests/psxsem01/init.c
+++ b/testsuites/psxtests/psxsem01/init.c
@@ -115,7 +115,7 @@ static void test_sem_init_too_large_inital_value(void)
   int   rv;
 
   errno = 0;
-  rv = sem_init( &sem, 0, SEM_VALUE_MAX + 1 );
+  rv = sem_init( &sem, 0, (unsigned int) SEM_VALUE_MAX + 1 );
   rtems_test_assert( rv == -1 );
   rtems_test_assert( errno == EINVAL );
 }




More information about the vc mailing list