Browse Source

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

Adam Yang 6 năm trước cách đây
mục cha
commit
8da9314cb1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;