ObjFW  Check-in [b330936afe]

Overview
Comment:Fix a bug (hopefully the last!) in blocks.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: b330936afe15432704916263ff0ee50426066b2584c366d31cb0613ba69470bf
User & Date: js on 2011-07-18 23:47:36
Other Links: manifest | tags
Context
2011-07-19
22:53
Fast enumeration improvements. check-in: c52a5e5faf user: js tags: trunk
2011-07-18
23:47
Fix a bug (hopefully the last!) in blocks. check-in: b330936afe user: js tags: trunk
22:53
Add OFSet and OFMutableSet. check-in: 8df328d503 user: js tags: trunk
Changes

Modified src/OFBlock.m from [0147efccdf] to [736d4bd7b9].

289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
				alloc_failed_exception.isa =
				    [OFAllocFailedException class];
				@throw (OFAllocFailedException*)
				    &alloc_failed_exception;
			}

			if (src->forwarding == src)
				src->forwarding = *dst;

			memcpy(*dst, src, src->size);

			if (src->size >= sizeof(of_block_byref_t))
				src->byref_keep(*dst, src);
		} else
			*dst = src;







|







289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
				alloc_failed_exception.isa =
				    [OFAllocFailedException class];
				@throw (OFAllocFailedException*)
				    &alloc_failed_exception;
			}

			if (src->forwarding == src)
				(*dst)->forwarding = *dst;

			memcpy(*dst, src, src->size);

			if (src->size >= sizeof(of_block_byref_t))
				src->byref_keep(*dst, src);
		} else
			*dst = src;