summaryrefslogtreecommitdiffstats
path: root/RenderScript/src/InputLayoutDescParser.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2017-12-11 06:02:23 +0000
committerEgor Yusov <egor.yusov@gmail.com>2017-12-11 06:02:23 +0000
commit670d5a60b495c64a8a00d2521e2388eb5a892e07 (patch)
treed5d4760d3aac31c19f8a09e0e091416939744534 /RenderScript/src/InputLayoutDescParser.cpp
parentUpdated cmakelists (diff)
downloadDiligentTools-670d5a60b495c64a8a00d2521e2388eb5a892e07.tar.gz
DiligentTools-670d5a60b495c64a8a00d2521e2388eb5a892e07.zip
Fixed compiler warnings
Diffstat (limited to 'RenderScript/src/InputLayoutDescParser.cpp')
-rw-r--r--RenderScript/src/InputLayoutDescParser.cpp2
1 files changed, 1 insertions, 1 deletions
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<std::vector<LayoutElement> >( pBasePointer, m_LayoutElementsBufferOffset);
auto CurrIndex = Elements.size();
- if( CurrIndex != NewArrayIndex - 1 )
+ if( static_cast<int>(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 );