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/LuaBindings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'RenderScript/src/LuaBindings.cpp') diff --git a/RenderScript/src/LuaBindings.cpp b/RenderScript/src/LuaBindings.cpp index 425acbb..360dac6 100644 --- a/RenderScript/src/LuaBindings.cpp +++ b/RenderScript/src/LuaBindings.cpp @@ -197,7 +197,7 @@ namespace Diligent { VERIFY( pBasePointer == &RawData, "Sanity check failed" ); auto CurrIndex = RawData.size() / ElemSize; - if( CurrIndex != NewArrayIndex - 1 ) + if(static_cast(CurrIndex) != NewArrayIndex - 1 ) SCRIPT_PARSING_ERROR( L, "Explicit array indices are not allowed in array initialization. Provided index ", NewArrayIndex - 1, " conflicts with actual index ", CurrIndex, "." ); RawData.resize( (CurrIndex + 1) * ElemSize ); auto CurrValue = ReadValueFromLua( L, StackIndex ); -- cgit v1.2.3