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/InputLayoutDescParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'RenderScript/src/InputLayoutDescParser.cpp') diff --git a/RenderScript/src/InputLayoutDescParser.cpp b/RenderScript/src/InputLayoutDescParser.cpp index 3732866..53d2605 100644 --- a/RenderScript/src/InputLayoutDescParser.cpp +++ b/RenderScript/src/InputLayoutDescParser.cpp @@ -70,7 +70,7 @@ namespace Diligent VERIFY( pBasePointer == _pBasePointer, "Sanity check failed" ); auto &Elements = GetMemberByOffest >( pBasePointer, m_LayoutElementsBufferOffset); auto CurrIndex = Elements.size(); - if( CurrIndex != NewArrayIndex - 1 ) + if( static_cast(CurrIndex) != NewArrayIndex - 1 ) SCRIPT_PARSING_ERROR( L, "Explicit array indices are not allowed in layout description. Provided index ", NewArrayIndex - 1, " conflicts with actual index ", CurrIndex, "." ); Elements.resize( CurrIndex + 1 ); ParseLuaTable( L, StackIndex, &(Elements)[CurrIndex], m_Bindings ); -- cgit v1.2.3