Changeset 406 for trunk/src/gui/gui_style.cc
- Timestamp:
- 06/20/15 00:05:17 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/gui_style.cc
r395 r406 34 34 if ( !resolve( e->m_id.c_str(), e->m_class.c_str(), cselector, centry, LUA_TTABLE ) ) return false; 35 35 vec = vec4(); 36 for ( size_t i = 0; i < 4; ++i )36 for ( int i = 0; i < 4; ++i ) 37 37 { 38 lua_rawgeti( m_lua, -1, static_cast<int>( i+1 ));38 lua_rawgeti( m_lua, -1, i+1 ); 39 39 if ( lua_isnil( m_lua, -1 ) ) return true; 40 vec[i] = (float)lua_tonumber( m_lua, -1);40 vec[i] = static_cast< float >( lua_tonumber( m_lua, -1 ) ); 41 41 lua_pop( m_lua, 1 ); 42 42 }
Note: See TracChangeset
for help on using the changeset viewer.