Clang warns about bitwise operators on bools.  Cast to int silences
the warning without introducing short circut logic.

Change-Id: I6e25138e1acf4a5562d3925ea5b2fcef3addb783


[ROCm/ROCR-Runtime commit: 4b0c94cfe8]
Этот коммит содержится в:
Sean Keely
2021-10-14 23:56:58 -05:00
родитель 2a0cdb73f3
Коммит f5fcc610b7
+1 -1
Просмотреть файл
@@ -73,7 +73,7 @@ struct AqlPacket {
}
bool IsValid() const {
return (type() <= HSA_PACKET_TYPE_BARRIER_OR) & (type() != HSA_PACKET_TYPE_INVALID);
return int(type() <= HSA_PACKET_TYPE_BARRIER_OR) & (type() != HSA_PACKET_TYPE_INVALID);
}
std::string string() const {