소스 검색

Fixed a compiler warning with unsigned/signed mismatch (#2221)

Adam Yang 6 년 전
부모
커밋
8da9314cb1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/DXIL/DxilPDB.cpp

+ 1 - 1
lib/DXIL/DxilPDB.cpp

@@ -118,7 +118,7 @@ struct MSFWriter {
     uint32_t DirectorySizeInBytes = 0;
     DirectorySizeInBytes += sizeof(uint32_t);
     DirectorySizeInBytes += m_Streams.size() * 4;
-    for (int i = 0; i < m_Streams.size(); i++) {
+    for (unsigned i = 0; i < m_Streams.size(); i++) {
       DirectorySizeInBytes += m_Streams[i].NumBlocks * 4;
     }
     return DirectorySizeInBytes;