ObjFW  Diff

Differences From Artifact [c7257b8dbc]:

To Artifact [94fe6e85f7]:


327
328
329
330
331
332
333




334
335
336
337
338
339
340
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344







+
+
+
+







}

- (OFArray*)objectsInRange: (of_range_t)range
{
	OFArray *ret;
	id *buffer;

	if (range.length > SIZE_MAX - range.location ||
	    range.location + range.length < [self count])
		@throw [OFOutOfRangeException exceptionWithClass: [self class]];

	if (![self isKindOfClass: [OFMutableArray class]])
		return [OFArray_subarray arrayWithArray: self
						  range: range];

	buffer = [self allocMemoryWithSize: sizeof(*buffer)
				     count: range.length];