Silence Clang warning.
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]
Этот коммит содержится в:
@@ -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 {
|
||||
|
||||
Ссылка в новой задаче
Block a user