Quash a warning in nptl/allocatestack.c
authorRoland McGrath <roland@hack.frob.com>
Fri, 15 Jul 2011 03:47:19 +0000 (20:47 -0700)
committerRoland McGrath <roland@hack.frob.com>
Fri, 15 Jul 2011 03:47:19 +0000 (20:47 -0700)
nptl/ChangeLog
nptl/allocatestack.c

index c545b07..2acc676 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-14  Roland McGrath  <roland@hack.frob.com>
+
+       * allocatestack.c (__reclaim_stacks): Use uintptr_t cast rather than
+       UINTMAX_C.
+
 2011-06-30  Ulrich Drepper  <drepper@gmail.com>
 
        * nptl-init.c (__nptl_set_robust): New function.
index 82408f5..9b8b0ce 100644 (file)
@@ -824,7 +824,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 *) (in_flight_stack & ~(uintptr_t) 1);
 
       if (add_p)
        {