Eo: class_get on a class should not return itself.

This is there until we create a Class class of which all classes are
instances.
This commit is contained in:
Tom Hacohen 2013-09-27 16:50:34 +01:00
parent c1e5fb7cf8
commit 7ed7d7da8b
1 changed files with 1 additions and 1 deletions

View File

@ -457,7 +457,7 @@ eo_class_get(const Eo *obj_id)
if (_eo_is_a_class(obj_id))
{
EO_CLASS_POINTER_RETURN_VAL(obj_id, _klass, NULL);
return obj_id;
return NULL;
}
EO_OBJ_POINTER_RETURN_VAL(obj_id, obj, NULL);