Explorar el Código

change Type to `int16_t`

blueloveTH hace 1 año
padre
commit
e7658d073b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      include/pocketpy/common.h

+ 1 - 1
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; }