Differences From Artifact [7df4d449e0]:
- File src/OFDictionary.m — part of check-in [5413ba3c49] at 2009-05-19 16:15:31 on branch trunk — One more convenience method for OFDictionary. (user: js, size: 6694) [annotate] [blame] [check-ins using]
To Artifact [921468f6aa]:
- File src/OFDictionary.m — part of check-in [7f7e9715e1] at 2009-05-19 16:51:56 on branch trunk — Add - isEqual: for OFList. (user: js, size: 6694) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
303 304 305 306 307 308 309 | size_t items, buckets, i; items = 0; buckets = 0; for (i = 0; i < size; i++) { if (data[i] != nil) { | | | 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 | size_t items, buckets, i; items = 0; buckets = 0; for (i = 0; i < size; i++) { if (data[i] != nil) { items += [data[i] count] / 2; buckets++; } } return (float)items / buckets; } |
︙ | ︙ |