Changeset 345 in dev for trunk/abdev/BasicCompiler_Common/src/Class.cpp
- Timestamp:
- Oct 10, 2007, 1:52:43 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/src/Class.cpp
r344 r345 826 826 return n; 827 827 } 828 LONG_PTRCClass::GetVtblMasterListOffset() const828 long CClass::GetVtblMasterListOffset() const 829 829 { 830 830 //既に存在する場合はそれを返す … … 836 836 return vtblMasterListOffset; 837 837 } 838 void CClass::GenerateVTablePart( LONG_PTR&vtableDataTableOffset ) const838 void CClass::GenerateVTablePart( long &vtableDataTableOffset ) const 839 839 { 840 840 const UserProc **ppsi = (const UserProc **)malloc(GetVtblNum()*sizeof(UserProc *)); … … 866 866 867 867 for( int i=0; i < GetVtblNum(); i++ ){ 868 pobj_Reloc->AddSchedule_DataSection( vtableDataTableOffset+i*sizeof(LONG_PTR));868 pobj_Reloc->AddSchedule_DataSection(static_cast<DWORD>(vtableDataTableOffset+i*sizeof(LONG_PTR))); 869 869 } 870 870 871 871 free(ppsi); 872 872 } 873 void CClass::GenerateVTableMasterList( const std::vector< LONG_PTR> &vtableMasterList, LONG_PTR&offset )873 void CClass::GenerateVTableMasterList( const std::vector<long> &vtableMasterList, long &offset ) 874 874 { 875 875 offset = compiler.GetObjectModule().dataTable.AddBinary( 876 876 (void *)&vtableMasterList[0], 877 vtableMasterList.size()*sizeof(LONG_PTR)877 static_cast<int>(vtableMasterList.size()*sizeof(LONG_PTR)) 878 878 ); 879 879 } … … 904 904 BOOST_FOREACH( const ::Interface &objInterface, interfaces ) 905 905 { 906 LONG_PTRtempVtblOffset;906 long tempVtblOffset; 907 907 objInterface.GetClass().GenerateVTablePart( tempVtblOffset ); 908 908 vtblMasterList.push_back( tempVtblOffset );
Note:
See TracChangeset
for help on using the changeset viewer.