mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8315206: RISC-V: hwprobe query is_set return wrong value
Backport-of: 876a725af9
This commit is contained in:
committed by
Vitaly Provodin
parent
34d982cc74
commit
a5ec8ea70a
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user