Skip to content

Commit d69ec0f

Browse files
committed
Use static_assert
We define `static_assert` in `pymacro.h`.
1 parent b649a96 commit d69ec0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Objects/typeobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,8 +1214,8 @@ _PyType_GetVersionForCurrentState(PyTypeObject *tp)
12141214

12151215

12161216
#define MAX_VERSIONS_PER_CLASS 1000
1217-
_Static_assert(MAX_VERSIONS_PER_CLASS < _Py_ATTR_CACHE_UNUSED,
1218-
"_Py_ATTR_CACHE_UNUSED must be bigger than max");
1217+
static_assert(MAX_VERSIONS_PER_CLASS < _Py_ATTR_CACHE_UNUSED,
1218+
"_Py_ATTR_CACHE_UNUSED must be bigger than max");
12191219

12201220
static int
12211221
assign_version_tag(PyInterpreterState *interp, PyTypeObject *type)

0 commit comments

Comments
 (0)