Ver código fonte

Update obj.h

blueloveTH 1 ano atrás
pai
commit
7de1d4d55a
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      include/pocketpy/obj.h

+ 1 - 1
include/pocketpy/obj.h

@@ -146,7 +146,7 @@ struct PyObject final{
 template<typename 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 kTpFloatIndex = 4;