Преглед изворни кода

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;