Changeset 55 in dev for BasicCompiler_Common/calculation.cpp
- Timestamp:
- Feb 13, 2007, 3:14:57 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/calculation.cpp
r50 r55 162 162 if(IsSignedType(type1)||IsSignedType(type2)){ 163 163 //符号あり 164 if(size1==sizeof(char)) return DEF_ CHAR;164 if(size1==sizeof(char)) return DEF_SBYTE; 165 165 if(size1==sizeof(short)) return DEF_INTEGER; 166 166 if(size1==sizeof(long)) return DEF_LONG; … … 362 362 363 363 if(IsSignedType(AnswerType)){ 364 if(AnswerType==DEF_ CHAR&&(i64stack[sp-2]<CHAR_MIN||CHAR_MAX<i64stack[sp-2])){364 if(AnswerType==DEF_SBYTE&&(i64stack[sp-2]<CHAR_MIN||CHAR_MAX<i64stack[sp-2])){ 365 365 //符号有り8ビット値をはみ出したとき 366 366 AnswerType=DEF_INTEGER; … … 604 604 } 605 605 } 606 else if(i2==DEF_INTEGER ){606 else if(i2==DEF_INTEGER || (isUnicode&&i2==DEF_CHAR)){ 607 607 short shortData; 608 608 if(i3=ReadProcessMemory(hDebugProcess,offset,&shortData,sizeof(short),&stAccBytes)){ … … 616 616 } 617 617 } 618 else if(i2==DEF_ CHAR){618 else if(i2==DEF_SBYTE || (isUnicode==false&&i2==DEF_CHAR)){ 619 619 char charData; 620 620 if(i3=ReadProcessMemory(hDebugProcess,offset,&charData,sizeof(char),&stAccBytes)){
Note:
See TracChangeset
for help on using the changeset viewer.