From c87c1650885ed8d156b343d02fcd0efa8e3f2170 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 19 Feb 2018 02:30:02 +0200 Subject: jvm: Cast to jobject instead of void --- src/fakejvm/jvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fakejvm/jvm.c') diff --git a/src/fakejvm/jvm.c b/src/fakejvm/jvm.c index b213534..db4e3ed 100644 --- a/src/fakejvm/jvm.c +++ b/src/fakejvm/jvm.c @@ -157,7 +157,7 @@ jvm_find_object(struct jvm *jvm, const struct jvm_object *o) assert(o->type < JVM_OBJECT_LAST); if (comparator[o->type](o, &jvm->objects[i])) - return (void*)(i + 1); + return (jobject)(i + 1); } return 0; @@ -203,7 +203,7 @@ jvm_add_object(struct jvm *jvm, const struct jvm_object *o) if (!jvm->objects[i].this_klass) jvm_assing_default_class(jvm, &jvm->objects[i]); - return (void*)(i + 1); + return (jobject)(i + 1); } static jobject -- cgit v1.2.3-70-g09d2