diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-02-19 02:30:02 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-02-19 02:30:02 +0200 |
commit | c87c1650885ed8d156b343d02fcd0efa8e3f2170 (patch) | |
tree | 3a8c67f3b52bf01047dc849bf2796f506d3093ee /src/fakejvm | |
parent | d56a97f0e49d47c2563c252aeefe963bc6188860 (diff) |
jvm: Cast to jobject instead of void
Diffstat (limited to 'src/fakejvm')
-rw-r--r-- | src/fakejvm/jvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |