ObjFW  Check-in [50457cd1fd]

Overview
Comment:Fix a bug in -[OFDictionary initWithKeys:arguments:].

When a key already exists, it means the precalculated count is wrong.
Therefore, decrease count if the key already exists.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 50457cd1fd91eb6436409a57371232ffeeaf37d9f769ab257693f47d4b0b2335
User & Date: js on 2011-06-04 18:49:11
Other Links: manifest | tags
Context
2011-06-05
17:50
Check floating point endianess. check-in: 0348b9b3b3 user: js tags: trunk
2011-06-04
18:49
Fix a bug in -[OFDictionary initWithKeys:arguments:]. check-in: 50457cd1fd user: js tags: trunk
18:07
Add missing include for old GNU runtime. check-in: c53d58fef3 user: js tags: trunk
Changes

Modified src/OFDictionary.m from [a5322a8311] to [10ad77a11e].

461
462
463
464
465
466
467

468
469
470
471
472
473
474
				[data[j]->object release];
			} @catch (id e) {
				[object release];
				@throw e;
			}

			data[j]->object = object;

		}
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;







>







461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
				[data[j]->object release];
			} @catch (id e) {
				[object release];
				@throw e;
			}

			data[j]->object = object;
			count--;
		}
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;