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
이 커밋은 다음에 포함됨:
Shweta Khatri 작성하고 Shweta Khatri가 2023-07-21 15:36:48 -04:00를 커밋함
1 부모 687eb043d4
커밋 a2d0adf9be
1 파일이 변경됨
+1 -1
+1 -1
파일 보기
@@ -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 {