diff options
| author | Elliott Hughes <enh@google.com> | 2015-01-22 01:52:05 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-01-22 01:52:06 +0000 |
| commit | d1668a71df761eb1644496f3e2c77c16fd54bb06 (patch) | |
| tree | 9acfbeb2c5fc1e858bed6db341004df078a2d4ab /libc/bionic/sigaddset.cpp | |
| parent | 4f11c59b3f3acffe6c8e359296a9e38c4b7edfb6 (diff) | |
| parent | 8b5df3920f2843c9cdf04160517c1e8b77c992f5 (diff) | |
| download | bionic-d1668a71df761eb1644496f3e2c77c16fd54bb06.zip bionic-d1668a71df761eb1644496f3e2c77c16fd54bb06.tar.gz bionic-d1668a71df761eb1644496f3e2c77c16fd54bb06.tar.bz2 | |
Merge "Turn on -Wold-style-cast and fix the errors."
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; } |
