Ignore:
Timestamp:
08/17/13 21:22:56 (12 years ago)
Author:
cahir
Message:

Fix warnings on MacOSX 64-bit with clang 3.3

File:
1 edited

Legend:

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

    r198 r204  
    249249{
    250250        lua_getfield( L->L, -1, element.c_str() );
    251         int result = lua_type( L->L, -1 ) == LUA_TNUMBER ? lua_tointeger( L->L, -1 ) : defval;
    252         lua_pop( L->L, 1 );
    253         return result;
     251        lua_Integer result = lua_type( L->L, -1 ) == LUA_TNUMBER ? lua_tointeger( L->L, -1 ) : defval;
     252        lua_pop( L->L, 1 );
     253        return static_cast< int >( result );
    254254}
    255255
Note: See TracChangeset for help on using the changeset viewer.