Jelajahi Sumber

Fixed warnings.

Бранимир Караџић 6 tahun lalu
induk
melakukan
35abd01cfb
2 mengubah file dengan 5 tambahan dan 5 penghapusan
  1. 3 3
      tools/shaderc/shaderc_metal.cpp
  2. 2 2
      tools/shaderc/shaderc_spirv.cpp

+ 3 - 3
tools/shaderc/shaderc_metal.cpp

@@ -729,8 +729,8 @@ namespace bgfx { namespace metal
 							if (index != std::string::npos)
 							{
 								bool found = false;
-								
-								for (int32_t ii = 0; ii < BX_COUNTOF(s_samplerTypes); ++ii)
+
+								for (uint32_t ii = 0; ii < BX_COUNTOF(s_samplerTypes); ++ii)
 								{
 									if (!bx::findIdentifierMatch(strLine.c_str(), s_samplerTypes[ii]).isEmpty())
 									{
@@ -738,7 +738,7 @@ namespace bgfx { namespace metal
 										break;
 									}
 								}
-								
+
 								if (!found)
 								{
 									for (int32_t ii = 0, num = program->getNumLiveUniformVariables(); ii < num; ++ii)

+ 2 - 2
tools/shaderc/shaderc_spirv.cpp

@@ -783,7 +783,7 @@ namespace bgfx { namespace spirv
 							{
 								bool found = false;
 
-								for (int32_t ii = 0; ii < BX_COUNTOF(s_samplerTypes); ++ii)
+								for (uint32_t ii = 0; ii < BX_COUNTOF(s_samplerTypes); ++ii)
 								{
 									if (!bx::findIdentifierMatch(strLine.c_str(), s_samplerTypes[ii]).isEmpty())
 									{
@@ -791,7 +791,7 @@ namespace bgfx { namespace spirv
 										break;
 									}
 								}
-								
+
 								if (!found)
 								{
 									for (int32_t ii = 0, num = program->getNumLiveUniformVariables(); ii < num; ++ii)