Changeset 534 for trunk/src/lua/lua_nova.cc
- Timestamp:
- 01/12/17 14:41:17 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_nova.cc
r490 r534 91 91 if (lua_tointeger( L, itype ) != lua_type( L, ivalue ) && lua_tointeger( L, itype ) > 0) 92 92 { 93 luaL_error( L, "lua.nova - \"%s.%s\" - type mismatch, %s expected, %s found!", lua_tolstring( L, iid, 0 ), lua_tolstring( L, ifield, 0 ), lua_typename( L, lua_tointeger( L, itype ) ), lua_typename( L, lua_type( L, ivalue ) ) );93 luaL_error( L, "lua.nova - \"%s.%s\" - type mismatch, %s expected, %s found!", lua_tolstring( L, iid, 0 ), lua_tolstring( L, ifield, 0 ), lua_typename( L, (int)lua_tointeger( L, itype ) ), lua_typename( L, lua_type( L, ivalue ) ) ); 94 94 } 95 95 break; … … 296 296 lua_rawget( L, 1 ); 297 297 int count = 0; 298 if ( !lua_isnil( L, -1 ) ) count = lua_tointeger( L, -1 );298 if ( !lua_isnil( L, -1 ) ) count = (int)lua_tointeger( L, -1 ); 299 299 lua_pop( L, 1 ); 300 300 count++; … … 358 358 static int nova_create_seq_function_closure( lua_State * L ) 359 359 { 360 int fc = lua_tointeger( L, lua_upvalueindex( 1 ) );360 int fc = (int)lua_tointeger( L, lua_upvalueindex( 1 ) ); 361 361 int args = lua_gettop( L ); 362 362 for ( int fi = 1; fi <= fc; fi++ )
Note: See TracChangeset
for help on using the changeset viewer.