diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2017-12-06 05:12:45 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2017-12-06 05:12:45 +0000 |
| commit | 624b8be46f38a695f6f9e4c7ea07cd8f370c04b4 (patch) | |
| tree | 24e9e62b8e0c2c2cae1c0026ef36010fd09214a1 /RenderScript/include/LuaBindings.h | |
| parent | CMake: Added grouping of projects in VS solution (diff) | |
| download | DiligentTools-624b8be46f38a695f6f9e4c7ea07cd8f370c04b4.tar.gz DiligentTools-624b8be46f38a695f6f9e4c7ea07cd8f370c04b4.zip | |
Updated cmake files; fixed build warnings
Diffstat (limited to 'RenderScript/include/LuaBindings.h')
| -rw-r--r-- | RenderScript/include/LuaBindings.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/RenderScript/include/LuaBindings.h b/RenderScript/include/LuaBindings.h index 19df66c..2a27720 100644 --- a/RenderScript/include/LuaBindings.h +++ b/RenderScript/include/LuaBindings.h @@ -476,7 +476,7 @@ namespace Diligent int ArrayInd = 1; for( auto it = m_EnumMapping.m_Val2StrMap.begin(); it != m_EnumMapping.m_Val2StrMap.end(); ++it ) { - if( (Flags & it->first) == it->first ) + if( static_cast<EnumType>(Flags & it->first) == it->first ) { lua_pushnumber( L, ArrayInd ); // -0 | +1 -> +1 PushValue<const String&>( L, it->second ); // -0 | +1 -> +1 |
