ObjFW  Check-in [2179411c60]

Overview
Comment:Add a cast to make Clang happy.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | runtime
Files: files | file ages | folders
SHA3-256: 2179411c604ecc345628d9bc91e4c79ebfdc8b7b874f2359d5ba33b2231c2c48
User & Date: js on 2012-03-23 10:45:50
Other Links: branch diff | manifest | tags
Context
2012-03-23
10:46
Fix objc_get_type_encoding(). check-in: 4cf75724eb user: js tags: runtime
10:45
Add a cast to make Clang happy. check-in: 2179411c60 user: js tags: runtime
2012-03-06
17:19
Fix an evil typo. check-in: b3dd58a1ae user: js tags: runtime
Changes

Modified src/OFObject.m from [cb4e4e0941] to [6045fcc9af].

778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
#endif
}

- autorelease
{
	/*
	 * Cache OFAutoreleasePool since class lookups are expensive with the
	 * GNU runtime.
	 */
	if (autoreleasePool == Nil)
		autoreleasePool = [OFAutoreleasePool class];

	[autoreleasePool addObject: self];

	return self;







|







778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
#endif
}

- autorelease
{
	/*
	 * Cache OFAutoreleasePool since class lookups are expensive with the
	 * GNU ABI.
	 */
	if (autoreleasePool == Nil)
		autoreleasePool = [OFAutoreleasePool class];

	[autoreleasePool addObject: self];

	return self;

Modified src/runtime/class.m from [79e5f03637] to [b053085faa].

79
80
81
82
83
84
85

86
87
88
89
90
91
92
93
		dtable = objc_sparsearray_copy(cls->superclass->dtable);
	else
		dtable = objc_sparsearray_new();

	for (ml = cls->methodlist; ml != NULL; ml = ml->next)
		for (i = 0; i < ml->count; i++)
			objc_sparsearray_set(dtable,

			    ml->methods[i].sel.uid, ml->methods[i].imp);

	if ((cats = objc_categories_for_class(cls)) != NULL) {
		for (i = 0; cats[i] != NULL; i++) {
			unsigned int j;

			ml = (cls->info & OBJC_CLASS_INFO_CLASS ?
			    cats[i]->instance_methods : cats[i]->class_methods);







>
|







79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
		dtable = objc_sparsearray_copy(cls->superclass->dtable);
	else
		dtable = objc_sparsearray_new();

	for (ml = cls->methodlist; ml != NULL; ml = ml->next)
		for (i = 0; i < ml->count; i++)
			objc_sparsearray_set(dtable,
			    (uint32_t)ml->methods[i].sel.uid,
			    ml->methods[i].imp);

	if ((cats = objc_categories_for_class(cls)) != NULL) {
		for (i = 0; cats[i] != NULL; i++) {
			unsigned int j;

			ml = (cls->info & OBJC_CLASS_INFO_CLASS ?
			    cats[i]->instance_methods : cats[i]->class_methods);