From 670d5a60b495c64a8a00d2521e2388eb5a892e07 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 10 Dec 2017 22:02:23 -0800 Subject: Fixed compiler warnings --- RenderScript/src/ShaderParser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'RenderScript/src/ShaderParser.cpp') diff --git a/RenderScript/src/ShaderParser.cpp b/RenderScript/src/ShaderParser.cpp index 12d9157..1b48c26 100644 --- a/RenderScript/src/ShaderParser.cpp +++ b/RenderScript/src/ShaderParser.cpp @@ -97,7 +97,7 @@ namespace Diligent VERIFY_EXPR( pBasePointer == _pBasePointer ); auto CurrIndex = ShaderVarDescBuffer.size(); - if( CurrIndex != NewArrayIndex - 1 ) + if( static_cast(CurrIndex) != NewArrayIndex - 1 ) SCRIPT_PARSING_ERROR( L, "Explicit array indices are not allowed in shader name description. Provided index ", NewArrayIndex - 1, " conflicts with actual index ", CurrIndex, "." ); ShaderVarDescBuffer.resize( CurrIndex + 1 ); ShaderNamesBuffer.resize( CurrIndex + 1 ); @@ -202,7 +202,7 @@ namespace Diligent VERIFY_EXPR( pBasePointer == _pBasePointer ); auto CurrIndex = StaticSamplersBuffer.size(); - if( CurrIndex != NewArrayIndex - 1 ) + if(static_cast(CurrIndex) != NewArrayIndex - 1 ) SCRIPT_PARSING_ERROR( L, "Explicit array indices are not allowed in static sampler description. Provided index ", NewArrayIndex - 1, " conflicts with actual index ", CurrIndex, "." ); StaticSamplersBuffer.resize( CurrIndex + 1 ); StaticSamplerTexNamesBuffer.resize( CurrIndex + 1 ); -- cgit v1.2.3