We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a537cc3 commit 5dbbdf4Copy full SHA for 5dbbdf4
Objects/typeobject.c
@@ -1214,8 +1214,9 @@ _PyType_GetVersionForCurrentState(PyTypeObject *tp)
1214
1215
1216
#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");
+#if _Py_ATTR_CACHE_UNUSED < MAX_VERSIONS_PER_CLASS
+#error "_Py_ATTR_CACHE_UNUSED must be bigger than max"
1219
+#endif
1220
1221
static int
1222
assign_version_tag(PyInterpreterState *interp, PyTypeObject *type)
0 commit comments