summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuites/psxtests/psxconfig01/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuites/psxtests/psxconfig01/init.c b/testsuites/psxtests/psxconfig01/init.c
index ea8cd5dc5a..0a3de1b919 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);