Changeset 9 in dev for BasicCompiler64/NumOpe.cpp
- Timestamp:
- Dec 7, 2006, 3:10:13 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler64/NumOpe.cpp
r3 r9 490 490 ////////////// 491 491 492 i3 =GetConstValue(term,&dbl,temporary,&index_stack[sp]);493 if(i3 !=-1){494 type[sp] =i3;492 i3 = CDBConst::obj.GetType(term); 493 if(i3){ 494 type[sp] = i3; 495 495 if(IsRealNumberType(i3)){ 496 496 //実数 497 double dbl = CDBConst::obj.GetDoubleData(term); 497 498 memcpy(&i64data,&dbl,sizeof(double)); 498 499 goto Literal; … … 500 501 else if(IsWholeNumberType(i3)){ 501 502 //整数 502 i64data =(_int64)dbl;503 i64data = CDBConst::obj.GetWholeData(term); 503 504 goto Literal; 504 505 } 505 else if(Is64Type(i3)){ 506 //64ビット整数値 507 memcpy(&i64data,&dbl,sizeof(_int64)); 508 goto Literal; 509 } 510 else if(i3==DEF_STRING){ 506 /*else if(i3==DEF_STRING){ 511 507 //リテラル文字列 512 508 … … 516 512 memcpy(term,temporary,i3); 517 513 goto StrLiteral; 518 } 514 }*/ 519 515 else{ 520 516 SetError(1,NULL,0); … … 522 518 } 523 519 } 520 524 521 525 522
Note:
See TracChangeset
for help on using the changeset viewer.