Mark argument in Object_isA const

This commit is contained in:
Christian Göttsche 2020-10-05 12:27:32 +02:00 committed by cgzones
parent cdd3913647
commit 577984d875
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ ObjectClass Object_class = {
#ifndef NDEBUG #ifndef NDEBUG
bool Object_isA(Object* o, const ObjectClass* klass) { bool Object_isA(const Object* o, const ObjectClass* klass) {
if (!o) if (!o)
return false; return false;
const ObjectClass* type = o->klass; const ObjectClass* type = o->klass;

View File

@ -50,7 +50,7 @@ extern ObjectClass Object_class;
#ifndef NDEBUG #ifndef NDEBUG
bool Object_isA(Object* o, const ObjectClass* klass); bool Object_isA(const Object* o, const ObjectClass* klass);
#endif /* NDEBUG */ #endif /* NDEBUG */