Overview
Comment: | runtime: Make Apple GCC with -Wshadow happy |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
31155755cc9963b8192bb50f2fcb863d |
User & Date: | js on 2017-10-23 20:43:46 |
Other Links: | manifest | tags |
Context
2017-10-23
| ||
21:02 | ChangeLog: Add 0.90.2 check-in: d2b8a733e2 user: js tags: trunk | |
20:43 | runtime: Make Apple GCC with -Wshadow happy check-in: 31155755cc user: js tags: trunk | |
2017-10-22
| ||
20:58 | Make struct size a multiple of the alignment check-in: b52c4a41e4 user: js tags: trunk | |
Changes
Modified src/runtime/hashtable.m from [69b267cc69] to [2844ae174b].
︙ | ︙ | |||
127 128 129 130 131 132 133 | free(table->data); table->data = ndata; table->size = nsize; } static inline bool | | | | | 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | free(table->data); table->data = ndata; table->size = nsize; } static inline bool index_for_key(struct objc_hashtable *table, const void *key, uint32_t *idx) { uint32_t i, hash; hash = table->hash(key) & (table->size - 1); for (i = hash; i < table->size && table->data[i] != NULL; i++) { if (table->data[i] == &objc_deleted_bucket) continue; if (table->equal(table->data[i]->key, key)) { *idx = i; return true; } } if (i < table->size) return false; for (i = 0; i < hash && table->data[i] != NULL; i++) { if (table->data[i] == &objc_deleted_bucket) continue; if (table->equal(table->data[i]->key, key)) { *idx = i; return true; } } return false; } |
︙ | ︙ |