From: Rich Felker Date: Tue, 14 Jun 2011 00:37:52 +0000 (-0400) Subject: fix sigset macro for 64-bit systems (<< was overflowing due to wrong type) X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;ds=sidebyside;h=f09e78de983a8d1daf2f6e071a998eb615f1ce67;hp=1e4f1cf154d18d2bd13cd4524a8bbae6786efd02;p=musl fix sigset macro for 64-bit systems (<< was overflowing due to wrong type) --- 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 })