Ignore:
Timestamp:
01/12/17 14:41:17 (8 years ago)
Author:
epyon
Message:

CONTINUED:

  • getting rid of size_t
  • datatypes now restricted to uint32 size
  • 64-bit compatibility
  • copyright updates where modified
File:
1 edited

Legend:

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

    r490 r534  
    9191                if (lua_tointeger( L, itype ) != lua_type( L, ivalue ) && lua_tointeger( L, itype ) > 0)
    9292                {
    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 ) ) );
    9494                }
    9595                break;
     
    296296        lua_rawget( L, 1 );
    297297        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 );
    299299        lua_pop( L, 1 );
    300300        count++;
     
    358358static int nova_create_seq_function_closure( lua_State * L )
    359359{
    360         int fc   = lua_tointeger( L, lua_upvalueindex( 1 ) );
     360        int fc   = (int)lua_tointeger( L, lua_upvalueindex( 1 ) );
    361361        int args = lua_gettop( L );
    362362        for ( int fi = 1; fi <= fc; fi++ )
Note: See TracChangeset for help on using the changeset viewer.