Ignore:
Timestamp:
05/15/15 12:52:52 (10 years ago)
Author:
epyon
Message:
  • fixed compilation on clang
  • cleared all clang warnings (except fix_me's)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lua/lua_handle.cc

    r335 r364  
    1515        NV_LUA_STACK_ASSERT( L, +1 );
    1616        lua_rawgeti( L, LUA_REGISTRYINDEX, pseudoindex ); // table
    17         lua_rawgeti( L, -1, index );                      // table, entry
     17        lua_rawgeti( L, -1, (int)index );                 // table, entry
    1818        if ( !lua_istable( L, -1 ) )
    1919        {
     
    5757        lua_rawgeti( L, LUA_REGISTRYINDEX, pseudoindex );
    5858        lua_insert( L, -2 );
    59         lua_rawseti( L, -2, index );
     59        lua_rawseti( L, -2, (int)index );
    6060        lua_pop( L, 1 );
    6161}
     
    6666        lua_rawgeti( L, LUA_REGISTRYINDEX, pseudoindex ); // table
    6767        lua_pushinteger( L, 0 );
    68         lua_rawseti( L, -2, index );
     68        lua_rawseti( L, -2, (int)index );
    6969        lua_pop( L, 1 );
    7070}
Note: See TracChangeset for help on using the changeset viewer.