[llvm] r296557 - Fix signed / unsigned comparison warning.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 28 17:07:11 PST 2017


Author: zturner
Date: Tue Feb 28 19:07:10 2017
New Revision: 296557

URL: http://llvm.org/viewvc/llvm-project?rev=296557&view=rev
Log:
Fix signed / unsigned comparison warning.

Modified:
    llvm/trunk/unittests/DebugInfo/PDB/BinaryStreamTest.cpp

Modified: llvm/trunk/unittests/DebugInfo/PDB/BinaryStreamTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/DebugInfo/PDB/BinaryStreamTest.cpp?rev=296557&r1=296556&r2=296557&view=diff
==============================================================================
--- llvm/trunk/unittests/DebugInfo/PDB/BinaryStreamTest.cpp (original)
+++ llvm/trunk/unittests/DebugInfo/PDB/BinaryStreamTest.cpp Tue Feb 28 19:07:10 2017
@@ -135,7 +135,7 @@ public:
   void SetUp() override {
     Streams.clear();
     Streams.resize(NumStreams);
-    for (int I = 0; I < NumStreams; ++I)
+    for (uint32_t I = 0; I < NumStreams; ++I)
       Streams[I].IsContiguous = (I % 2 == 0);
 
     InputData.clear();




More information about the llvm-commits mailing list