Changeset 638 in dev for trunk/ab5.0/abdev/BasicCompiler_Common
- Timestamp:
- Jun 12, 2008, 11:02:32 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/NumOpe_GetType.cpp
r632 r638 193 193 } 194 194 195 int GetReturnType_OperatorProc(int idCalc,const Type &baseType,int *type_stack,LONG_PTR *index_stack,int &sp){ 195 int GetReturnType_OperatorProc(int idCalc,const Type &baseType,int *type_stack,LONG_PTR *index_stack,int &sp) 196 { 197 if( sp < 2 ) 198 { 199 Jenga::Throw( "GetReturnType_OperatorProcのspが2以下" ); 200 } 201 196 202 Type leftType( type_stack[sp-2], index_stack[sp-2] ); 197 203 Type rightType( type_stack[sp-1] & (~FLAG_CAST), index_stack[sp-1] ); … … 708 714 idCalc=calc[i]%100; 709 715 710 if(idCalc ){716 if(idCalc && sp >= 2){ 711 717 if(type_stack[sp-2]==DEF_OBJECT){ 712 718 if( idCalc == CALC_AS
Note:
See TracChangeset
for help on using the changeset viewer.