Fix bit_set range

This commit is contained in:
gingerBill
2018-08-14 18:35:14 +01:00
parent 966249c10a
commit 79a3c0b36c
2 changed files with 7 additions and 16 deletions

View File

@@ -2075,7 +2075,8 @@ i64 type_align_of_internal(Type *t, TypePath *path) {
if (bits <= 16) return 2;
if (bits <= 32) return 4;
if (bits <= 64) return 8;
GB_PANIC("unknown bit_set size");
return 8;
}
}
@@ -2301,7 +2302,7 @@ i64 type_size_of_internal(Type *t, TypePath *path) {
if (bits <= 16) return 2;
if (bits <= 32) return 4;
if (bits <= 64) return 8;
GB_PANIC("unknown bit_set size");
return 8;
}
}