change Type to int16_t

This commit is contained in:
blueloveTH 2024-05-12 18:07:13 +08:00
parent e56e58c917
commit e7658d073b

View File

@ -97,7 +97,7 @@ struct NoReturn { };
struct Discarded { };
struct Type {
int index;
int16_t index;
constexpr Type(): index(-1) {}
explicit constexpr Type(int index): index(index) {}
bool operator==(Type other) const { return this->index == other.index; }