diff --git a/src/builtin.cpp b/src/builtin.cpp index 5a44a6a260..a59ac44da9 100644 --- a/src/builtin.cpp +++ b/src/builtin.cpp @@ -731,7 +731,7 @@ Avian_java_lang_Runtime_exit { shutDown(t); - t->m->system->exit(*arguments); + t->m->system->exit(arguments[1]); } extern "C" JNIEXPORT int64_t JNICALL