Browse Source

Fix clang logical-op-parentheses warning

No description

---
687cd74eb85cc26a02a9e2536693ad9c9d710416

Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/795
abogutksiy 6 months ago
parent
commit
7e4fd8b537
1 changed files with 2 additions and 2 deletions
  1. 2 2
      yt/yt/client/chunk_client/chunk_replica-inl.h

+ 2 - 2
yt/yt/client/chunk_client/chunk_replica-inl.h

@@ -304,8 +304,8 @@ inline bool IsErasureChunkId(TChunkId id)
 inline bool IsErasureChunkPartType(NObjectClient::EObjectType type)
 {
     return
-        type >= NObjectClient::MinErasureChunkPartType && type <= NObjectClient::MaxErasureChunkPartType ||
-        type >= NObjectClient::MinErasureJournalChunkPartType && type <= NObjectClient::MaxErasureJournalChunkPartType;
+        (type >= NObjectClient::MinErasureChunkPartType && type <= NObjectClient::MaxErasureChunkPartType) ||
+        (type >= NObjectClient::MinErasureJournalChunkPartType && type <= NObjectClient::MaxErasureJournalChunkPartType);
 }
 
 inline bool IsErasureChunkPartId(TChunkId id)