Changeset 41 in dev for BasicCompiler64
- Timestamp:
- Jan 28, 2007, 5:28:43 AM (18 years ago)
- Location:
- BasicCompiler64
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler64/Compile_Var.cpp
r40 r41 934 934 } 935 935 936 937 /////////////////////////////////////// 938 // 単発式([]で囲まれていない) 939 /////////////////////////////////////// 940 936 941 if(SubScripts[0]!=-1){ 937 942 SetError(41,0,cp); -
BasicCompiler64/NumOpe.cpp
r38 r41 737 737 if(!Calc_Cast(type,index_stack,&sp)) goto error; 738 738 break; 739 case CALC_BYVAL: 740 //ポインタ型→参照型 741 if( PTR_LEVEL( type[sp-1] ) <= 0 ){ 742 //ポインタ型ではないとき 743 SetError( 3, NULL, cp ); 744 goto error; 745 } 746 747 type[sp-1] = PTR_LEVEL_DOWN( type[sp-1] ); 748 749 break; 739 750 740 751 default: 741 752 SetError(300,NULL,cp); 742 break;753 goto error; 743 754 } 744 755 }
Note:
See TracChangeset
for help on using the changeset viewer.