# HG changeset patch # User Christian Wirth # Date 1401090363 -7200 # Node ID a9810ed7cad2423a3d03c4c6e0d1fc79536ed6ff # Parent 839cb35354e85663e6f60832a766b0671065d5a9 explicit conversion to int, fixes windows build diff -r 839cb35354e8 -r a9810ed7cad2 src/share/vm/graal/graalRuntime.cpp --- a/src/share/vm/graal/graalRuntime.cpp Sun May 25 15:55:15 2014 +0200 +++ b/src/share/vm/graal/graalRuntime.cpp Mon May 26 09:46:03 2014 +0200 @@ -683,7 +683,7 @@ name = arg + 1; name_len = strlen(name); name_handle = java_lang_String::create_from_str(name, CHECK); - valid = set_option(hotSpotOptionsClass, name, name_len, name_handle, arg, CHECK); + valid = set_option(hotSpotOptionsClass, name, (int)name_len, name_handle, arg, CHECK); } else { char* sep = strchr(arg, '='); if (sep != NULL) { @@ -696,7 +696,7 @@ if (HAS_PENDING_EXCEPTION) { return; } - valid = set_option(hotSpotOptionsClass, name, name_len, name_handle, sep + 1, CHECK); + valid = set_option(hotSpotOptionsClass, name, (int)name_len, name_handle, sep + 1, CHECK); } else { char buf[200]; jio_snprintf(buf, sizeof(buf), "Value for option %s must use '-G:%s=' format", arg, arg); @@ -714,7 +714,7 @@ void GraalRuntime::parse_graal_options_file(KlassHandle hotSpotOptionsClass, TRAPS) { const char* home = Arguments::get_java_home(); - int path_len = strlen(home) + strlen("/lib/graal.options") + 1; + int path_len = (int)strlen(home) + (int)strlen("/lib/graal.options") + 1; char* path = NEW_RESOURCE_ARRAY_IN_THREAD(THREAD, char, path_len); char sep = os::file_separator()[0]; sprintf(path, "%s%clib%cgraal.options", home, sep, sep);