diff --git a/src/hotspot/os_cpu/linux_riscv/riscv_hwprobe.cpp b/src/hotspot/os_cpu/linux_riscv/riscv_hwprobe.cpp index f5b2f03ff1f..f8e42a13207 100644 --- a/src/hotspot/os_cpu/linux_riscv/riscv_hwprobe.cpp +++ b/src/hotspot/os_cpu/linux_riscv/riscv_hwprobe.cpp @@ -100,7 +100,7 @@ static bool is_valid(int64_t key) { static bool is_set(int64_t key, uint64_t value_mask) { if (is_valid(key)) { - return query[key].value & value_mask != 0; + return (query[key].value & value_mask) != 0; } return false; }