Changeset 55 in dev for BasicCompiler32/Compile_Var.cpp
- Timestamp:
- Feb 13, 2007, 3:14:57 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler32/Compile_Var.cpp
r50 r55 872 872 } 873 873 } 874 else if(type==DEF_INTEGER||type==DEF_WORD )874 else if(type==DEF_INTEGER||type==DEF_WORD || (isUnicode&&type==DEF_CHAR)) 875 875 *(WORD *)(initGlobalBuf+offset)=(WORD)i64data; 876 else if(type==DEF_ CHAR||type==DEF_BYTE||type==DEF_BOOLEAN)876 else if(type==DEF_SBYTE||type==DEF_BYTE||type==DEF_BOOLEAN || (isUnicode==false&&type==DEF_CHAR)) 877 877 *(BYTE *)(initGlobalBuf+offset)=(BYTE)i64data; 878 878 //String型が未完成 … … 1066 1066 obp+=sizeof(long); 1067 1067 } 1068 else if(type==DEF_INTEGER||type==DEF_WORD ){1068 else if(type==DEF_INTEGER||type==DEF_WORD || (isUnicode&&type==DEF_CHAR)){ 1069 1069 //mov ax,InitValue 1070 1070 OpBuffer[obp++]=(char)0x66; … … 1081 1081 obp+=sizeof(long); 1082 1082 } 1083 else if(type==DEF_ CHAR||type==DEF_BYTE||type==DEF_BOOLEAN){1083 else if(type==DEF_SBYTE||type==DEF_BYTE||type==DEF_BOOLEAN || (isUnicode==false&&type==DEF_CHAR)){ 1084 1084 //mov byte ptr[ebp+offset],InitValue 1085 1085 OpBuffer[obp++]=(char)0xC6;
Note:
See TracChangeset
for help on using the changeset viewer.