소스 검색

fix sigset macro for 64-bit systems (<< was overflowing due to wrong type)

Rich Felker 14 년 전
부모
커밋
f09e78de98
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/internal/pthread_impl.h

+ 1 - 1
src/internal/pthread_impl.h

@@ -82,7 +82,7 @@ struct __timer {
 #define SIGSYSCALL 34
 
 #define SIGPT_SET ((sigset_t *)(unsigned long [1+(sizeof(long)==4)]){ \
-	[sizeof(long)==4] = 3<<(32*(sizeof(long)>4)) })
+	[sizeof(long)==4] = 3UL<<(32*(sizeof(long)>4)) })
 #define SIGTIMER_SET ((sigset_t *)(unsigned long [1+(sizeof(long)==4)]){ \
 	 0x80000000 })