Browse Source

Fix build warnings

Helena Kotas 7 years ago
parent
commit
9849acc20c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      lib/DxrFallback/Reducibility.cpp
  2. 1 1
      lib/HLSL/DxilContainerReflection.cpp

+ 1 - 1
lib/DxrFallback/Reducibility.cpp

@@ -82,7 +82,7 @@ static void printDotGraph(const std::vector<Node*> nodes, const std::string& fil
   out << "  labeljust = \"l\"\n";
   out << "]\n";
 
-  for (int i = 0; i < nodes.size(); ++i)
+  for (unsigned i = 0; i < nodes.size(); ++i)
   {
     Node* N = nodes[i];
 

+ 1 - 1
lib/HLSL/DxilContainerReflection.cpp

@@ -2335,7 +2335,7 @@ HRESULT DxilLibraryReflection::GetDesc(D3D12_LIBRARY_DESC * pDesc) {
 
 _Use_decl_annotations_
 ID3D12FunctionReflection *DxilLibraryReflection::GetFunctionByIndex(INT FunctionIndex) {
-  if (FunctionIndex >= m_FunctionVector.size())
+  if ((UINT)FunctionIndex >= m_FunctionVector.size())
     return &g_InvalidFunction;
   return m_FunctionVector[FunctionIndex];
 }