diff --git a/src/jdk.management/aix/native/libmanagement_ext/UnixOperatingSystem.c b/src/jdk.management/aix/native/libmanagement_ext/UnixOperatingSystem.c index ebd298ede44..f0f06264fce 100644 --- a/src/jdk.management/aix/native/libmanagement_ext/UnixOperatingSystem.c +++ b/src/jdk.management/aix/native/libmanagement_ext/UnixOperatingSystem.c @@ -55,7 +55,7 @@ JNIEXPORT jlong JNICALL Java_com_sun_management_internal_OperatingSystemImpl_getHostTotalCpuTicks0 (JNIEnv *env, jobject mbean) { - return -1.0; + return -1; } JNIEXPORT jint JNICALL diff --git a/src/jdk.management/macosx/native/libmanagement_ext/UnixOperatingSystem.c b/src/jdk.management/macosx/native/libmanagement_ext/UnixOperatingSystem.c index 8b6d00339cc..2c11cd9ca9d 100644 --- a/src/jdk.management/macosx/native/libmanagement_ext/UnixOperatingSystem.c +++ b/src/jdk.management/macosx/native/libmanagement_ext/UnixOperatingSystem.c @@ -171,7 +171,7 @@ JNIEXPORT jlong JNICALL Java_com_sun_management_internal_OperatingSystemImpl_getHostTotalCpuTicks0 (JNIEnv *env, jobject mbean) { - return -1.0; + return -1; } JNIEXPORT jint JNICALL