diff options
| author | Richard Lowe <richlowe@richlowe.net> | 2011-05-16 21:37:47 +0000 |
|---|---|---|
| committer | Richard Lowe <richlowe@richlowe.net> | 2011-05-16 21:37:47 +0000 |
| commit | b30a53d02d9bc370d76b8125a98e34311c768b5e (patch) | |
| tree | 8faa7b9d5466ec8fc6c078382759c1030ccfd8bc /usr/src/lib/libc_db | |
| parent | 6b7143d774683daf27dfb2e93ab48d1ade1a3477 (diff) | |
| download | illumos-joyent-b30a53d02d9bc370d76b8125a98e34311c768b5e.tar.gz | |
2242 libraries should be more careful casting pointers
Reviewed by: Dan McDonald <danmcd@nexenta.com>
Reviewed by: Gordon Ross <gwr@nexenta.com>
Approved by: Albert Lee <trisk@nexenta.com>
Diffstat (limited to 'usr/src/lib/libc_db')
| -rw-r--r-- | usr/src/lib/libc_db/common/thread_db.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/lib/libc_db/common/thread_db.c b/usr/src/lib/libc_db/common/thread_db.c index 78989e1152..77c44b2782 100644 --- a/usr/src/lib/libc_db/common/thread_db.c +++ b/usr/src/lib/libc_db/common/thread_db.c @@ -824,7 +824,8 @@ __td_ta_tsd_iter(td_thragent_t *ta_p, td_key_iter_f *cb, void *cbdata_p) else { for (key = 1; key < numkeys; key++) { destruct32 = destructors32[key]; - if (destruct32 != (caddr32_t)TSD_UNALLOCATED && + if ((destruct32 != + (caddr32_t)(uintptr_t)TSD_UNALLOCATED) && (*cb)(key, (PFrV)(uintptr_t)destruct32, cbdata_p)) break; |
