summaryrefslogtreecommitdiffstats
path: root/RenderScript/include
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-12-23 16:53:27 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-12-23 16:53:27 +0000
commit4f42518d9d071988b216b8c6d0d497bbb0c95ebe (patch)
tree3957bc7fc9e8ac57fbff2bd9de9d6f775b4e9662 /RenderScript/include
parentFixed msvc warning plus few minor issues revealed by code analysis (diff)
downloadDiligentTools-4f42518d9d071988b216b8c6d0d497bbb0c95ebe.tar.gz
DiligentTools-4f42518d9d071988b216b8c6d0d497bbb0c95ebe.zip
Fixed clang compiler warning
Diffstat (limited to 'RenderScript/include')
-rw-r--r--RenderScript/include/LuaBindings.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/RenderScript/include/LuaBindings.h b/RenderScript/include/LuaBindings.h
index 468145f..62dea95 100644
--- a/RenderScript/include/LuaBindings.h
+++ b/RenderScript/include/LuaBindings.h
@@ -478,7 +478,8 @@ namespace Diligent
int ArrayInd = 1;
for( auto it = m_EnumMapping.m_Val2StrMap.begin(); it != m_EnumMapping.m_Val2StrMap.end(); ++it )
{
- if( it->first != 0 && static_cast<EnumType>(Flags & it->first) == it->first || Flags == 0 && it->first == 0)
+ if( (it->first != 0 && static_cast<EnumType>(Flags & it->first) == it->first) ||
+ (Flags == 0 && it->first == 0) )
{
lua_pushnumber( L, ArrayInd ); // -0 | +1 -> +1
PushValue<const String&>( L, it->second ); // -0 | +1 -> +1