Skip to content

Commit

Permalink
Mark argument in Object_isA const
Browse files Browse the repository at this point in the history
  • Loading branch information
cgzones committed Oct 5, 2020
1 parent cdd3913 commit 577984d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Object.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ObjectClass Object_class = {

#ifndef NDEBUG

bool Object_isA(Object* o, const ObjectClass* klass) {
bool Object_isA(const Object* o, const ObjectClass* klass) {
if (!o)
return false;
const ObjectClass* type = o->klass;
Expand Down
2 changes: 1 addition & 1 deletion Object.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ extern ObjectClass Object_class;

#ifndef NDEBUG

bool Object_isA(Object* o, const ObjectClass* klass);
bool Object_isA(const Object* o, const ObjectClass* klass);

#endif /* NDEBUG */

Expand Down

0 comments on commit 577984d

Please sign in to comment.