Differences From Artifact [5d75b08ec8]:
- File src/runtime/hashtable.m — part of check-in [239fbb269e] at 2019-02-07 21:55:35 on branch trunk — More style improvements (user: js, size: 5158) [annotate] [blame] [check-ins using]
To Artifact [3b13e94c04]:
- File
src/runtime/hashtable.m
— part of check-in
[b226150570]
at
2019-06-16 13:42:52
on branch trunk
— runtime: Fix sizeof(sizeof(...))
Luckily, there was no overflow, as sizeof(size_t) == sizeof(void *) on
pretty much every platform. (user: js, size: 5150) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
96 97 98 99 100 101 102 | newSize = table->size / 2; else return; if (count < table->count && newSize < 16) return; | | | 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | newSize = table->size / 2; else return; if (count < table->count && newSize < 16) return; if ((newData = calloc(newSize, sizeof(*newData))) == NULL) OBJC_ERROR("Not enough memory to resize hash table!"); for (uint32_t i = 0; i < table->size; i++) { if (table->data[i] != NULL && table->data[i] != &objc_deleted_bucket) { uint32_t j, last; |
︙ | ︙ |