ObjFW  Check-in [3519c1e727]

Overview
Comment:OFDataArray: Fix a missing underscore
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 3519c1e7272a435f75f2529217cd29cdd93277f1dd0101b540b8ef87e2ff48eb
User & Date: js on 2016-09-07 21:15:26
Other Links: manifest | tags
Context
2016-09-11
22:03
OFDate: Add support for parsing time zones check-in: e4439b7ef8 user: js tags: trunk
2016-09-07
21:15
OFDataArray: Fix a missing underscore check-in: 3519c1e727 user: js tags: trunk
2016-09-03
22:33
OFSystemInfo: Use sysdir.h on macOS 10.12 check-in: a006d15fed user: js tags: trunk
Changes

Modified src/OFDataArray.m from [bd7b819877] to [dc88f78688].

427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
		  atIndex: index
		    count: 1];
}

- (void)addItems: (const void*)items
	   count: (size_t)count
{
	if (count > SIZE_MAX - count)
		@throw [OFOutOfRangeException exception];

	if (_count + count > _capacity) {
		_items = [self resizeMemory: _items
				       size: _itemSize
				      count: _count + count];
		_capacity = _count + count;







|







427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
		  atIndex: index
		    count: 1];
}

- (void)addItems: (const void*)items
	   count: (size_t)count
{
	if (count > SIZE_MAX - _count)
		@throw [OFOutOfRangeException exception];

	if (_count + count > _capacity) {
		_items = [self resizeMemory: _items
				       size: _itemSize
				      count: _count + count];
		_capacity = _count + count;