Ignore:
Timestamp:
May 10, 2008, 6:28:58 PM (17 years ago)
Author:
dai_9181
Message:

vtblOffsetの内部保持型をintに統一。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/VtblGenerator.cpp

    r587 r593  
    33using namespace ActiveBasic::Compiler;
    44
    5 LONG_PTR VtblGenerator::GenerateVTablePart( const Methods &methods )
     5int VtblGenerator::GenerateVTablePart( const Methods &methods )
    66{
    77    const UserProc **ppsi = (const UserProc **)malloc(methods.GetVtblNum()*sizeof(UserProc *));
     
    2929    }
    3030
    31     LONG_PTR vtableDataTableOffset = compiler.GetObjectModule().dataTable.AddBinary( (void *)ppsi, methods.GetVtblNum()*sizeof(LONG_PTR) );
     31    int vtableDataTableOffset = compiler.GetObjectModule().dataTable.AddBinary( (void *)ppsi, methods.GetVtblNum()*sizeof(LONG_PTR) );
    3232
    3333    for( int i=0; i < methods.GetVtblNum(); i++ )
     
    6161
    6262    // 自身のクラスのvtblを生成
    63     LONG_PTR thisClassVtblOffset = GenerateVTablePart( _class.GetDynamicMethods() );
     63    int thisClassVtblOffset = GenerateVTablePart( _class.GetDynamicMethods() );
    6464    _class.SetVtblOffset( thisClassVtblOffset );
    6565    _class.vtblMasterList.push_back( thisClassVtblOffset );
     
    6868    BOOST_FOREACH( const ::Interface *pInterface, _class.GetInterfaces() )
    6969    {
    70         LONG_PTR tempVtblOffset = GenerateVTablePart( pInterface->GetDynamicMethods() );
     70        int tempVtblOffset = GenerateVTablePart( pInterface->GetDynamicMethods() );
    7171        _class.vtblMasterList.push_back( tempVtblOffset );
    7272
Note: See TracChangeset for help on using the changeset viewer.