Differences From Artifact [5339feda90]:
- File src/OFMutableDictionary.m — part of check-in [2517f18272] at 2010-04-17 16:09:37 on branch trunk — Give the methods in OFNumber better names. (user: js, size: 5237) [annotate] [blame] [check-ins using]
To Artifact [c74680827d]:
- File
src/OFMutableDictionary.m
— part of check-in
[3bccfadcc1]
at
2010-06-01 18:00:12
on branch trunk
— Fix a very nasty typo in OFMutableDictionary.
This typo would prevent termination in the very rare case that the last
bucket is already used. (user: js, size: 5237) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
57 58 59 60 61 62 63 | for (; j < last && newdata[j] != NULL; j++); /* In case the last bucket is already used */ if (j >= last) { last = data[i]->hash & (newsize - 1); for (j = 0; j < last && | | | 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | for (; j < last && newdata[j] != NULL; j++); /* In case the last bucket is already used */ if (j >= last) { last = data[i]->hash & (newsize - 1); for (j = 0; j < last && newdata[j] != NULL; j++); } if (j >= last) { [self freeMemory: newdata]; @throw [OFOutOfRangeException newWithClass: isa]; } |
︙ | ︙ |