[PATCH 19/42] psxconfig01/init.c: Correct pointer/integer size warning
Joel Sherrill
joel.sherrill at oarcorp.com
Mon Mar 23 14:39:17 UTC 2015
---
testsuites/psxtests/psxconfig01/init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testsuites/psxtests/psxconfig01/init.c b/testsuites/psxtests/psxconfig01/init.c
index ea8cd5d..0a3de1b 100644
--- a/testsuites/psxtests/psxconfig01/init.c
+++ b/testsuites/psxtests/psxconfig01/init.c
@@ -309,7 +309,7 @@ static rtems_task Init(rtems_task_argument argument)
eno = pthread_key_create(&key, posix_key_dtor);
rtems_test_assert(eno == 0);
- eno = pthread_setspecific(key, (void *) (i + 1));
+ eno = pthread_setspecific(key, (void *) (uintptr_t)(i + 1));
rtems_test_assert(eno == 0);
}
eno = pthread_key_create(&key, posix_key_dtor);
--
1.9.3
More information about the devel
mailing list