From 7de1d4d55a5c7fe02a019f03903ed8f2234a6a17 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Mon, 20 May 2024 00:25:48 +0800 Subject: [PATCH] Update obj.h --- include/pocketpy/obj.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pocketpy/obj.h b/include/pocketpy/obj.h index 3a3bb7a9..e386c522 100644 --- a/include/pocketpy/obj.h +++ b/include/pocketpy/obj.h @@ -146,7 +146,7 @@ struct PyObject final{ template inline constexpr int py_sizeof = sizeof(PyObject) + sizeof(T); -static_assert(sizeof(PyObject) == 16); +static_assert(sizeof(PyObject) <= 16); const int kTpIntIndex = 3; const int kTpFloatIndex = 4;