Changeset 8 in dev for BasicCompiler32/NumOpe.cpp
- Timestamp:
- Dec 7, 2006, 3:10:05 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler32/NumOpe.cpp
r3 r8 438 438 ////////////// 439 439 440 i3 =GetConstValue(term,&dbl,temporary,&index_stack[sp]);441 if(i3 !=-1){440 i3 = CDBConst::obj.GetType(term); 441 if(i3){ 442 442 type[sp]=i3; 443 443 if(IsRealNumberType(i3)){ 444 444 //実数 445 double dbl = CDBConst::obj.GetDoubleData(term); 445 446 memcpy(&i64data,&dbl,sizeof(double)); 446 447 goto Literal; … … 448 449 else if(IsWholeNumberType(i3)){ 449 450 //整数 450 i64data =(_int64)dbl;451 i64data = CDBConst::obj.GetWholeData(term); 451 452 goto Literal; 452 453 } 453 else if(Is64Type(i3)){ 454 //64ビット整数値 455 memcpy(&i64data,&dbl,sizeof(_int64)); 456 goto Literal; 457 } 458 else if(i3==DEF_STRING){ 454 /*else if(i3==DEF_STRING){ 459 455 //リテラル文字列 460 456 … … 464 460 memcpy(term,temporary,i3); 465 461 goto StrLiteral; 466 } 462 }*/ 467 463 else{ 468 464 SetError(300,NULL,cp);
Note:
See TracChangeset
for help on using the changeset viewer.