Browse Source

fix cast warning

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Thorsten Glaser 9 years ago
parent
commit
9d429ee21c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libpthread/nptl/allocatestack.c

+ 1 - 1
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)
 	{