Add missing type stuff

This commit is contained in:
Krzosa Karol
2023-04-16 15:37:29 +02:00
parent 4f658c0c09
commit 556677c42b
3 changed files with 28 additions and 14 deletions

View File

@@ -180,16 +180,22 @@ CORE_Static String
get_type_postfix(Ast_Type *type) {
switch (type->kind) {
case TYPE_F32: return "f"_s; break;
case TYPE_ULLONG:
case TYPE_U64: return "ULL"_s; break;
case TYPE_LLONG:
case TYPE_S64: return "LL"_s; break;
case TYPE_U8:
case TYPE_UCHAR:
case TYPE_U16:
case TYPE_U32: return "U"_s; break;
case TYPE_SHORT:
case TYPE_LONG:
case TYPE_F64:
case TYPE_S8:
case TYPE_S16:
case TYPE_S32:
case TYPE_U8:
case TYPE_U16:
case TYPE_INT:
case TYPE_U32:
case TYPE_CHAR:
return ""_s;
break;