From 9d429ee21c755316bf01e589c1106cc64bb0f3b4 Mon Sep 17 00:00:00 2001 From: Thorsten Glaser Date: Thu, 1 Jan 2015 19:44:26 +0000 Subject: fix cast warning Signed-off-by: Thorsten Glaser --- libpthread/nptl/allocatestack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3