Fix array lengths with enum value counts.

This commit is contained in:
gingerBill
2019-12-27 13:55:18 +00:00
parent 10f0961184
commit 880c7f01a8
6 changed files with 133 additions and 17 deletions
+8
View File
@@ -336,6 +336,14 @@ Selection selection_combine(Selection const &lhs, Selection const &rhs) {
return new_sel;
}
Selection sub_selection(Selection const &sel, isize offset) {
Selection res = {};
res.index.data = sel.index.data + offset;
res.index.count = sel.index.count - offset;
res.index.capacity = res.index.count;
return res;
}
gb_global Type basic_types[] = {