This commit is contained in:
blueloveTH 2023-09-22 00:28:29 +08:00
parent e9b2060276
commit b126fc2c9b
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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) {}
};