ObjFW  Check-in [e0d581d524]

Overview
Comment:Fix initialization of mutations in OF{Array,Dictionary}Enumerator.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e0d581d52478edb672bafd63e4dba557babe8a74d2eb83b9c9dafbf0dca1fa2a
User & Date: js on 2010-06-13 17:42:09
Other Links: manifest | tags
Context
2010-06-13
17:44
Fallback to select() in OFSocketObserver if poll() is unavailable. check-in: 6a73e7ac51 user: js tags: trunk
17:42
Fix initialization of mutations in OF{Array,Dictionary}Enumerator. check-in: e0d581d524 user: js tags: trunk
16:50
Work around a stupid gcc bug. check-in: 8c23ddc0a0 user: js tags: trunk
Changes

Modified src/OFArray.m from [54c48d5def] to [181efadcb0].

370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
- initWithDataArray: (OFDataArray*)array_
   mutationsPointer: (unsigned long*)mutationsPtr_;
{
	self = [super init];

	array = array_;
	count = [array_ count];
	mutations = *mutationsPtr_;
	mutationsPtr = mutationsPtr_;

	return self;
}

- (id)nextObject
{







|







370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
- initWithDataArray: (OFDataArray*)array_
   mutationsPointer: (unsigned long*)mutationsPtr_;
{
	self = [super init];

	array = array_;
	count = [array_ count];
	mutations = (mutationsPtr_ != NULL ? *mutationsPtr_ : 0);
	mutationsPtr = mutationsPtr_;

	return self;
}

- (id)nextObject
{

Modified src/OFDictionary.m from [0083ef4288] to [d6200e89ce].

686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
	      size: (uint32_t)size_
  mutationsPointer: (unsigned long*)mutationsPtr_
{
	self = [super init];

	data = data_;
	size = size_;
	mutations = *mutationsPtr_;
	mutationsPtr = mutationsPtr_;

	return self;
}

- (void)reset
{







|







686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
	      size: (uint32_t)size_
  mutationsPointer: (unsigned long*)mutationsPtr_
{
	self = [super init];

	data = data_;
	size = size_;
	mutations = (mutationsPtr_ != NULL ? *mutationsPtr_ : 0);
	mutationsPtr = mutationsPtr_;

	return self;
}

- (void)reset
{