summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-20 10:45:55 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-24 08:16:30 -0500
commitab90136b4399206907b223901de8eab08955675e (patch)
tree6d0be6a98379f308e09e1ba83d7ed7e1fd7b1e32
parentpsxtests/psx15/init.c: Correct printf() warning (diff)
downloadrtems-ab90136b4399206907b223901de8eab08955675e.tar.bz2
psxconfig01/init.c: Correct pointer/integer size warning
-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);