Overview
Comment: | Fix too big allocation size in OFDictionary. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
3825c5fc9a3581e0f4e835040495e3f3 |
User & Date: | js on 2011-07-05 02:10:18 |
Other Links: | manifest | tags |
Context
2011-07-06
| ||
17:44 | Add +[new] to OFObject for compatibility and convenience. check-in: 0319e89d4b user: js tags: trunk | |
2011-07-05
| ||
02:10 | Fix too big allocation size in OFDictionary. check-in: 3825c5fc9a user: js tags: trunk | |
2011-06-30
| ||
23:44 | Added tag 0.5.3-release for changeset 1c8cdf13be9c check-in: 5dd66a8549 user: js tags: trunk | |
Changes
Modified src/OFDictionary.m from [b73da14229] to [b3a725a15f].
︙ | ︙ | |||
153 154 155 156 157 158 159 | struct of_dictionary_bucket *bucket; if (key == nil || object == nil) @throw [OFInvalidArgumentException newWithClass: isa selector: _cmd]; data = [self allocMemoryForNItems: 2 | | | 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | struct of_dictionary_bucket *bucket; if (key == nil || object == nil) @throw [OFInvalidArgumentException newWithClass: isa selector: _cmd]; data = [self allocMemoryForNItems: 2 withSize: sizeof(*data)]; size = 2; for (i = 0; i < size; i++) data[i] = NULL; i = [key hash] & 1; bucket = [self allocMemoryWithSize: sizeof(*bucket)]; |
︙ | ︙ |