Changeset 55 in dev for BasicCompiler64/Compile_Var.cpp
- Timestamp:
- Feb 13, 2007, 3:14:57 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler64/Compile_Var.cpp
r50 r55 909 909 else if(type==DEF_LONG||type==DEF_DWORD) 910 910 *(DWORD *)(initGlobalBuf+offset)=(DWORD)i64data; 911 else if(type==DEF_INTEGER||type==DEF_WORD )911 else if(type==DEF_INTEGER||type==DEF_WORD || (isUnicode&&type==DEF_CHAR)) 912 912 *(WORD *)(initGlobalBuf+offset)=(WORD)i64data; 913 else if(type==DEF_ CHAR||type==DEF_BYTE||type==DEF_BOOLEAN)913 else if(type==DEF_SBYTE||type==DEF_BYTE||type==DEF_BOOLEAN || (isUnicode==false&&type==DEF_CHAR)) 914 914 *(BYTE *)(initGlobalBuf+offset)=(BYTE)i64data; 915 915 … … 1079 1079 obp+=sizeof(long)+sizeof(long); 1080 1080 } 1081 else if(type==DEF_INTEGER||type==DEF_WORD ){1081 else if(type==DEF_INTEGER||type==DEF_WORD || (isUnicode&&type==DEF_CHAR)){ 1082 1082 //mov word ptr[rsp+offset],value 1083 1083 op_mov_MV(sizeof(short),REG_RSP,offset,USE_OFFSET,(int)i64data); … … 1086 1086 obp+=sizeof(long)+sizeof(short); 1087 1087 } 1088 else if(type==DEF_ CHAR||type==DEF_BYTE||type==DEF_BOOLEAN){1088 else if(type==DEF_SBYTE||type==DEF_BYTE||type==DEF_BOOLEAN || (isUnicode==false&&type==DEF_CHAR)){ 1089 1089 //mov byte ptr[rsp+offset],value 1090 1090 op_mov_MV(sizeof(char),REG_RSP,offset,USE_OFFSET,(int)i64data);
Note:
See TracChangeset
for help on using the changeset viewer.