Changeset 198 for trunk/src/lua/lua_state.cc
- Timestamp:
- 08/11/13 17:19:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_state.cc
r188 r198 257 257 { 258 258 lua_getfield( L->L, -1, element.c_str() ); 259 intresult = lua_type( L->L, -1 ) == LUA_TNUMBER ? lua_tounsigned( L->L, -1 ) : defval;259 unsigned result = lua_type( L->L, -1 ) == LUA_TNUMBER ? lua_tounsigned( L->L, -1 ) : defval; 260 260 lua_pop( L->L, 1 ); 261 261 return result;
Note: See TracChangeset
for help on using the changeset viewer.