summaryrefslogtreecommitdiff
path: root/libpthread/nptl/allocatestack.c
diff options
context:
space:
mode:
authorThorsten Glaser <tg@mirbsd.org>2015-01-01 19:44:26 +0000
committerWaldemar Brodkorb <wbx@openadk.org>2015-01-01 13:34:50 -0600
commit9d429ee21c755316bf01e589c1106cc64bb0f3b4 (patch)
tree9e83b2b2326b2e9b2c4e6a97d8b208d2215f7600 /libpthread/nptl/allocatestack.c
parent96d2cac46e30a2c05e863f569f7710baed66b703 (diff)
fix cast warning
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Diffstat (limited to 'libpthread/nptl/allocatestack.c')
-rw-r--r--libpthread/nptl/allocatestack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpthread/nptl/allocatestack.c b/libpthread/nptl/allocatestack.c
index 3f0586d28..118820a9a 100644
--- a/libpthread/nptl/allocatestack.c
+++ b/libpthread/nptl/allocatestack.c
@@ -786,7 +786,7 @@ __reclaim_stacks (void)
if (in_flight_stack != 0)
{
bool add_p = in_flight_stack & 1;
- list_t *elem = (list_t *) (in_flight_stack & ~UINTMAX_C (1));
+ list_t *elem = (list_t *)(uintptr_t)(in_flight_stack & ~UINTMAX_C (1));
if (add_p)
{