Add overrides for aliasing int types to their bit width (int->i32)
This commit is contained in:
parent
39ee1b6028
commit
0c148f6e0c
|
@ -179,6 +179,14 @@ static int ReadKeyword(char* Str) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'i':
|
case 'i':
|
||||||
|
// alias char, int and long types
|
||||||
|
|
||||||
|
if(!strcmp(Str, "i8"))
|
||||||
|
return TY_CHAR;
|
||||||
|
if(!strcmp(Str, "i32"))
|
||||||
|
return TY_INT;
|
||||||
|
if(!strcmp(Str, "i64"))
|
||||||
|
return TY_LONG;
|
||||||
|
|
||||||
if(!strcmp(Str, "int"))
|
if(!strcmp(Str, "int"))
|
||||||
return TY_INT;
|
return TY_INT;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user