mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
...
This commit is contained in:
parent
e9b2060276
commit
b126fc2c9b
@ -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
|
||||
|
@ -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) {}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user