Ignore:
Timestamp:
06/20/15 00:05:17 (10 years ago)
Author:
epyon
Message:
  • code compiles cleanly on maximum warning level
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/gui_style.cc

    r395 r406  
    3434        if ( !resolve( e->m_id.c_str(), e->m_class.c_str(), cselector, centry, LUA_TTABLE ) ) return false;
    3535        vec = vec4();
    36         for (size_t i = 0; i < 4; ++i )
     36        for ( int i = 0; i < 4; ++i )
    3737        {
    38                 lua_rawgeti( m_lua, -1, static_cast<int>( i+1 ) );
     38                lua_rawgeti( m_lua, -1, i+1 );
    3939                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 ) );
    4141                lua_pop( m_lua, 1 );
    4242        }
Note: See TracChangeset for help on using the changeset viewer.