205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
|
}
#endif
- (void)addObject: (id)object
{
size_t count = (size_t)(uintptr_t)[_mapTable valueForKey: object];
if (SIZE_MAX - count < 1)
@throw [OFOutOfRangeException exceptionWithClass: [self class]];
[_mapTable setValue: (void*)(uintptr_t)(count + 1)
forKey: object];
}
- (void)removeObject: (id)object
|
|
|
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
|
}
#endif
- (void)addObject: (id)object
{
size_t count = (size_t)(uintptr_t)[_mapTable valueForKey: object];
if (SIZE_MAX - count < 1 || UINTPTR_MAX - count < 1)
@throw [OFOutOfRangeException exceptionWithClass: [self class]];
[_mapTable setValue: (void*)(uintptr_t)(count + 1)
forKey: object];
}
- (void)removeObject: (id)object
|