ObjFW  Diff

Differences From Artifact [baf90bc720]:

To Artifact [9b0a605b93]:


361
362
363
364
365
366
367

368

369
370
371
372
373
374
375
361
362
363
364
365
366
367
368

369
370
371
372
373
374
375
376







+
-
+







	id *buffer;

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

	if (![self isKindOfClass: [OFMutableArray class]])
		return [[[OFSubarray alloc] initWithArray: self
		return [OFSubarray arrayWithArray: self range: range];
						    range: range] autorelease];

	buffer = OFAllocMemory(range.length, sizeof(*buffer));
	@try {
		[self getObjects: buffer inRange: range];

		ret = [OFArray arrayWithObjects: buffer count: range.length];
	} @finally {