From e7658d073b4ac9b3ea404c067b7e2232ad74b922 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sun, 12 May 2024 18:07:13 +0800 Subject: [PATCH] change Type to `int16_t` --- include/pocketpy/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pocketpy/common.h b/include/pocketpy/common.h index 7b3229bc..4e6bc37c 100644 --- a/include/pocketpy/common.h +++ b/include/pocketpy/common.h @@ -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; }