[rtems commit] psxconfig01/init.c: Correct pointer/integer size warning
Joel Sherril
joel at rtems.org
Tue Mar 24 13:18:11 UTC 2015
Module: rtems
Branch: master
Commit: ab90136b4399206907b223901de8eab08955675e
Changeset: http://git.rtems.org/rtems/commit/?id=ab90136b4399206907b223901de8eab08955675e
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Fri Mar 20 10:45:55 2015 -0500
psxconfig01/init.c: Correct pointer/integer size warning
---
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);
More information about the vc
mailing list