From 8da9314cb1b623b12e8a6bb11fb5b684fd1cb0e0 Mon Sep 17 00:00:00 2001 From: Adam Yang <31109344+adam-yang@users.noreply.github.com> Date: Thu, 30 May 2019 15:58:39 -0700 Subject: [PATCH] Fixed a compiler warning with unsigned/signed mismatch (#2221) --- lib/DXIL/DxilPDB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DXIL/DxilPDB.cpp b/lib/DXIL/DxilPDB.cpp index 6a4fe630b..d2038a1ae 100644 --- a/lib/DXIL/DxilPDB.cpp +++ b/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;