Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix with recent clang
Baptiste Daroussin committed 13 years ago
commit 8e78273a92aa791c0dd90da9bc30e6cb58e61002
parent 79cbb8f
1 file changed +3 -3
modified external/uthash/uthash.h
@@ -215,17 +215,17 @@ do {
        _hd_hh_del = &((delptr)->hh);                                            \
        if ((delptr) == ELMT_FROM_HH((head)->hh.tbl,(head)->hh.tbl->tail)) {     \
            (head)->hh.tbl->tail =                                               \
-
                (UT_hash_handle*)((char*)((delptr)->hh.prev) +                   \
+
                (UT_hash_handle*)((ptrdiff_t*)((delptr)->hh.prev) +              \
                (head)->hh.tbl->hho);                                            \
        }                                                                        \
        if ((delptr)->hh.prev) {                                                 \
-
            ((UT_hash_handle*)((char*)((delptr)->hh.prev) +                      \
+
            ((UT_hash_handle*)((ptrdiff_t)((delptr)->hh.prev) +                  \
                    (head)->hh.tbl->hho))->next = (delptr)->hh.next;             \
        } else {                                                                 \
            DECLTYPE_ASSIGN(head,(delptr)->hh.next);                             \
        }                                                                        \
        if (_hd_hh_del->next) {                                                  \
-
            ((UT_hash_handle*)((char*)_hd_hh_del->next +                         \
+
            ((UT_hash_handle*)((ptrdiff_t)_hd_hh_del->next +                     \
                    (head)->hh.tbl->hho))->prev =                                \
                    _hd_hh_del->prev;                                            \
        }                                                                        \