Skip to content
This repository was archived by the owner on May 29, 2024. It is now read-only.

Commit e0434fb

Browse files
committed
Fix warning
1 parent cebb0ea commit e0434fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/jvmci/jvmciCompilerToVM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ C2V_VMENTRY_NULL(jobject, getResolvedJavaType0, (JNIEnv* env, jobject, jobject b
441441
offset < in_bytes(Klass::primary_supers_offset()) + (int) (sizeof(Klass*) * Klass::primary_super_limit()) &&
442442
offset % sizeof(Klass*) == 0) {
443443
// Offset is within the primary supers array
444-
int index = (offset - in_bytes(Klass::primary_supers_offset())) / sizeof(Klass*);
444+
int index = (int) ((offset - in_bytes(Klass::primary_supers_offset())) / sizeof(Klass*));
445445
klass = base_klass->primary_super_of_depth(index);
446446
} else {
447447
base_desc = FormatBufferResource("[%s]", base_klass->signature_name());

0 commit comments

Comments
 (0)