about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
Diffstat (limited to 'nptl')
-rw-r--r--nptl/ChangeLog5
-rw-r--r--nptl/allocatestack.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index c545b079f4..2acc676fd8 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -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.
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c
index 82408f5178..9b8b0ceb40 100644
--- a/nptl/allocatestack.c
+++ b/nptl/allocatestack.c
@@ -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)
 	{