Signed-off-by: Vegard Nossum <vegard.nos...@gmail.com>
---
 include/vm/object.h   |    2 +-
 test/vm/object-stub.c |    3 ++-
 vm/object.c           |    3 ++-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/include/vm/object.h b/include/vm/object.h
index 2252270..a8fe9bf 100644
--- a/include/vm/object.h
+++ b/include/vm/object.h
@@ -33,7 +33,7 @@ vm_object_alloc_string(const uint8_t bytes[], unsigned int 
length);
 
 struct vm_object *new_exception(const char *class_name, const char *message);
 
-bool vm_object_is_instance_of(struct vm_object *obj, struct vm_class *class);
+bool vm_object_is_instance_of(const struct vm_object *obj, const struct 
vm_class *class);
 void vm_object_check_null(struct vm_object *obj);
 void vm_object_check_array(struct vm_object *obj, unsigned int index);
 void vm_object_check_cast(struct vm_object *obj, struct vm_class *class);
diff --git a/test/vm/object-stub.c b/test/vm/object-stub.c
index 3cc1586..b41425c 100644
--- a/test/vm/object-stub.c
+++ b/test/vm/object-stub.c
@@ -16,7 +16,8 @@ struct vm_object *new_exception(const char *class_name, const 
char *message)
        return NULL;
 }
 
-bool vm_object_is_instance_of(struct vm_object *obj, struct vm_class *type)
+bool vm_object_is_instance_of(const struct vm_object *obj,
+       const struct vm_class *type)
 {
        if (!obj)
                return 0;
diff --git a/vm/object.c b/vm/object.c
index feb1e9c..9f0b58a 100644
--- a/vm/object.c
+++ b/vm/object.c
@@ -212,7 +212,8 @@ struct vm_object *new_exception(const char *class_name, 
const char *message)
        return obj;
 }
 
-bool vm_object_is_instance_of(struct vm_object *obj, struct vm_class *class)
+bool vm_object_is_instance_of(const struct vm_object *obj,
+       const struct vm_class *class)
 {
        if (!obj)
                return false;
-- 
1.6.0.4


------------------------------------------------------------------------------
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to