Browse Source

Update obj.h

blueloveTH 1 year ago
parent
commit
7de1d4d55a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/pocketpy/obj.h

+ 1 - 1
include/pocketpy/obj.h

@@ -146,7 +146,7 @@ struct PyObject final{
 template<typename T>
 template<typename T>
 inline constexpr int py_sizeof = sizeof(PyObject) + sizeof(T);
 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 kTpIntIndex = 3;
 const int kTpFloatIndex = 4;
 const int kTpFloatIndex = 4;