瀏覽代碼

fix cast warning

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Thorsten Glaser 9 年之前
父節點
當前提交
9d429ee21c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)
 	{