summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-05 12:27:32 +0200
committercgzones <cgzones@googlemail.com>2020-10-05 12:47:56 +0200
commit577984d875982ae5cd1d667e2c0131776e559c85 (patch)
tree77eb7eafc4c26ddb498c888828bb5f1596cf49a4
parentcdd39136476a9a09341caaa8cf987ee61ccdcb23 (diff)
Mark argument in Object_isA const
-rw-r--r--Object.c2
-rw-r--r--Object.h2
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 */

© 2014-2024 Faster IT GmbH | imprint | privacy policy