From 577984d875982ae5cd1d667e2c0131776e559c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 5 Oct 2020 12:27:32 +0200 Subject: [PATCH] Mark argument in Object_isA const --- Object.c | 2 +- Object.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Object.c b/Object.c index 9ac2be67..982f7bda 100644 --- a/Object.c +++ b/Object.c @@ -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; diff --git a/Object.h b/Object.h index 462797c2..ba213c89 100644 --- a/Object.h +++ b/Object.h @@ -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 */