Overview
Comment: | Fix memset on wrong variable in OFMutableDictionary. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
98f2fa06d0d53cf2d69016cc8f739a55 |
User & Date: | js on 2009-05-18 23:08:30 |
Other Links: | manifest | tags |
Context
2009-05-18
| ||
23:14 | Rename doxygen.cfg -> Doxyfile. check-in: e698bc8329 user: js tags: trunk | |
23:08 | Fix memset on wrong variable in OFMutableDictionary. check-in: 98f2fa06d0 user: js tags: trunk | |
22:47 | Add another convenience method for OFDictionary. check-in: 5d9ea7b9cc user: js tags: trunk | |
Changes
Modified src/OFMutableDictionary.m from [e1b66eccc2] to [8ea4251805].
︙ | ︙ | |||
100 101 102 103 104 105 106 | if (hashsize < 8 || hashsize >= 28) @throw [OFInvalidArgumentException newWithClass: isa andSelector: _cmd]; newsize = (size_t)1 << hashsize; newdata = [self allocNItems: newsize withSize: sizeof(OFList*)]; | | | 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | if (hashsize < 8 || hashsize >= 28) @throw [OFInvalidArgumentException newWithClass: isa andSelector: _cmd]; newsize = (size_t)1 << hashsize; newdata = [self allocNItems: newsize withSize: sizeof(OFList*)]; memset(newdata, 0, newsize * sizeof(OFList*)); for (i = 0; i < size; i++) { if (OF_LIKELY(data[i] == nil)) continue; for (iter = [data[i] first]; iter != NULL; iter = iter->next->next) { |
︙ | ︙ |