diff --git a/arthas-vmtool/src/main/native/src/jni-library.cpp b/arthas-vmtool/src/main/native/src/jni-library.cpp index d140541a5..adeccfb31 100644 --- a/arthas-vmtool/src/main/native/src/jni-library.cpp +++ b/arthas-vmtool/src/main/native/src/jni-library.cpp @@ -40,7 +40,7 @@ jlong getClassHashCode(JNIEnv *env, jclass javaClass) { extern "C" jvmtiIterationControl JNICALL HeapObjectCallback(jlong class_tag, jlong size, jlong *tag_ptr, void *user_data) { - auto *data = static_cast(user_data); + jlong *data = static_cast(user_data); *tag_ptr = *data; return JVMTI_ITERATION_CONTINUE; }