Correct evaluating condition to use logical AND

Aqlpacket:IsValid() function: Replaced bitwise AND operator (&) with the logical
AND operator (&&) when evaluating AQL packet type

Change-Id: I59980bc206cc7eff424023fff0bb92b618aa8c70


[ROCm/ROCR-Runtime commit: a2d0adf9be]
这个提交包含在:
Shweta Khatri
2023-07-18 19:46:14 -04:00
提交者 Shweta Khatri
父节点 bf41567189
当前提交 46643a8ec7
@@ -72,7 +72,7 @@ struct AqlPacket {
}
bool IsValid() const {
return int(type() <= HSA_PACKET_TYPE_BARRIER_OR) & (type() != HSA_PACKET_TYPE_INVALID);
return ((type() <= HSA_PACKET_TYPE_BARRIER_OR) && (type() != HSA_PACKET_TYPE_INVALID));
}
std::string string() const {