From f09e78de983a8d1daf2f6e071a998eb615f1ce67 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 13 Jun 2011 20:37:52 -0400 Subject: fix sigset macro for 64-bit systems (<< was overflowing due to wrong type) --- src/internal/pthread_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index 219bf006..12f8ccfc 100644 --- a/src/internal/pthread_impl.h +++ b/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 }) -- cgit v1.2.1