Changeset 204 for trunk/src/lua/lua_state.cc
- Timestamp:
- 08/17/13 21:22:56 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_state.cc
r198 r204 249 249 { 250 250 lua_getfield( L->L, -1, element.c_str() ); 251 intresult = 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 ); 254 254 } 255 255
Note: See TracChangeset
for help on using the changeset viewer.