8308458: Windows build failure with disassembler.cpp(792): warning C4267: '=': conversion from 'size_t' to 'int'

Reviewed-by: jiefu
This commit is contained in:
Jiangli Zhou 2023-05-22 16:24:45 +00:00
parent b58980b73d
commit 491bdeaa90

View File

@ -789,7 +789,7 @@ bool Disassembler::load_library(outputStream* st) {
char* p = strrchr(buf, '/');
*p = '\0';
strcat(p, "/lib/");
lib_offset = jvm_offset = strlen(buf);
lib_offset = jvm_offset = (int)strlen(buf);
#else
{
// Match "libjvm" instead of "jvm" on *nix platforms. Creates better matches.