blueloveTH 2 лет назад
Родитель
Сommit
b126fc2c9b
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      include/pocketpy/common.h
  2. 2 2
      include/pocketpy/obj.h

+ 2 - 2
include/pocketpy/common.h

@@ -21,7 +21,7 @@
 #include <type_traits>
 #include <random>
 
-#define PK_VERSION				"1.2.1"
+#define PK_VERSION				"1.2.2"
 
 #include "config.h"
 #include "export.h"
@@ -131,7 +131,7 @@ struct Type {
 #define PK_ASSERT(x) if(!(x)) FATAL_ERROR();
 
 struct PyObject;
-#define PK_BITS(p) (reinterpret_cast<i64>(p))
+#define PK_BITS(p) (reinterpret_cast<Number::int_t>(p))
 
 // special singals, is_tagged() for them is true
 inline PyObject* const PY_NULL = (PyObject*)0b000011;		// tagged null

+ 2 - 2
include/pocketpy/obj.h

@@ -201,9 +201,9 @@ Str obj_type_name(VM* vm, Type type);
 #endif
 
 union BitsCvt {
-    i64 _int;
+    Number::int_t _int;
     f64 _float;
-    BitsCvt(i64 val) : _int(val) {}
+    BitsCvt(Number::int_t val) : _int(val) {}
     BitsCvt(f64 val) : _float(val) {}
 };