mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
change Type to int16_t
This commit is contained in:
parent
e56e58c917
commit
e7658d073b
@ -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; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user