From b126fc2c9b80de946abc9efb207c1f18d97ee666 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Fri, 22 Sep 2023 00:28:29 +0800 Subject: [PATCH] ... --- include/pocketpy/common.h | 4 ++-- include/pocketpy/obj.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/pocketpy/common.h b/include/pocketpy/common.h index f783c888..9567e753 100644 --- a/include/pocketpy/common.h +++ b/include/pocketpy/common.h @@ -21,7 +21,7 @@ #include #include -#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(p)) +#define PK_BITS(p) (reinterpret_cast(p)) // special singals, is_tagged() for them is true inline PyObject* const PY_NULL = (PyObject*)0b000011; // tagged null diff --git a/include/pocketpy/obj.h b/include/pocketpy/obj.h index a4719bf7..a4fdb50a 100644 --- a/include/pocketpy/obj.h +++ b/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) {} };