Changeset 350 in dev for trunk/abdev/BasicCompiler32/OperatorProc.cpp
- Timestamp:
- Oct 14, 2007, 9:41:03 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/OperatorProc.cpp
r342 r350 28 28 } 29 29 30 int CallOperatorProc(int idCalc, const Type &baseType, int *type_stack,LONG_PTR *index_stack,BOOL *bUseHeap,int &sp){ 30 int CallOperatorProc(int idCalc, const Type &baseType, int *type_stack, LONG_PTR *index_stack,BOOL *bUseHeap,int &sp) 31 { 32 Type leftType( type_stack[sp-2], index_stack[sp-2] ); 33 Type rightType( type_stack[sp-1] & (~FLAG_CAST), index_stack[sp-1] ); 34 31 35 //オーバーロードされたオペレータ関数を呼び出す 32 CClass *pobj_c; 33 pobj_c=(CClass *)index_stack[sp-2]; 36 const CClass *pobj_c = &leftType.GetClass(); 34 37 35 38 std::vector<const UserProc *> subs; … … 52 55 53 56 if(bTwoTerm){ 54 params.push_back( new Parameter( "", Type( type_stack[sp-1], index_stack[sp-1] )) );57 params.push_back( new Parameter( "", rightType ) ); 55 58 } 56 59 … … 89 92 } 90 93 91 int right_side_size = Type(type_stack[sp-1],index_stack[sp-1]).GetSize();94 int right_side_size = rightType.GetSize(); 92 95 93 96 if(bTwoTerm){
Note:
See TracChangeset
for help on using the changeset viewer.