ObjFW  Check-in [3ae7423995]

Overview
Comment:Add cast to make Clang happy.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | runtime
Files: files | file ages | folders
SHA3-256: 3ae7423995bd020396167cdeea045428e5f7e0798550d820782470856a59e06f
User & Date: js on 2012-04-18 17:29:23
Other Links: branch diff | manifest | tags
Context
2012-04-18
18:00
Split OBJC_CLASS_INFO_INITIALIZED. check-in: 5a719c9b1f user: js tags: runtime
17:29
Add cast to make Clang happy. check-in: 3ae7423995 user: js tags: runtime
17:26
Remove unnecessary interface. check-in: 1bf4571d60 user: js tags: runtime
Changes

Modified src/runtime/class.m from [82ae92bc57] to [4b0eeefabc].

185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
	SEL initialize;
	unsigned int i;

	initialize = sel_registerName("initialize");

	for (ml = cls->isa->methodlist; ml != NULL; ml = ml->next)
		for (i = 0; i < ml->count; i++)
			if (sel_isEqual(&ml->methods[i].sel, initialize))
				((void(*)(id, SEL))ml->methods[i].imp)(cls,
				    initialize);
}

inline Class
objc_lookup_class(const char *name)
{







|







185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
	SEL initialize;
	unsigned int i;

	initialize = sel_registerName("initialize");

	for (ml = cls->isa->methodlist; ml != NULL; ml = ml->next)
		for (i = 0; i < ml->count; i++)
			if (sel_isEqual((SEL)&ml->methods[i].sel, initialize))
				((void(*)(id, SEL))ml->methods[i].imp)(cls,
				    initialize);
}

inline Class
objc_lookup_class(const char *name)
{