소스 검색

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