diff options
Diffstat (limited to 'libc/bionic/sigaddset.cpp')
| -rw-r--r-- | libc/bionic/sigaddset.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/bionic/sigaddset.cpp b/libc/bionic/sigaddset.cpp index 6ade3b1..ca6b982 100644 --- a/libc/bionic/sigaddset.cpp +++ b/libc/bionic/sigaddset.cpp @@ -31,8 +31,8 @@ int sigaddset(sigset_t* set, int signum) { int bit = signum - 1; // Signal numbers start at 1, but bit positions start at 0. - unsigned long* local_set = (unsigned long*) set; - if (set == NULL || bit < 0 || bit >= (int) (8*sizeof(sigset_t))) { + unsigned long* local_set = reinterpret_cast<unsigned long*>(set); + if (set == NULL || bit < 0 || bit >= static_cast<int>(8*sizeof(sigset_t))) { errno = EINVAL; return -1; } |
