8000 Use a run-time assert instead of a build-time one · python/cpython@1aa079c · GitHub
[go: up one dir, main page]

Skip to content

Commit 1aa079c

Browse files
committed
Use a run-time assert instead of a build-time one
1 parent 6b0e5ba commit 1aa079c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/specialize.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1928,8 +1928,8 @@ void
19281928
_Py_Specialize_BinaryOp(PyObject *lhs, PyObject *rhs, _Py_CODEUNIT *instr,
19291929
int oparg)
19301930
{
1931-
Py_BUILD_ASSERT(_PyOpcode_InlineCacheEntries[BINARY_OP] ==
1932-
INLINE_CACHE_ENTRIES_BINARY_OP);
1931+
assert(_PyOpcode_InlineCacheEntries[BINARY_OP] ==
1932+
INLINE_CACHE_ENTRIES_BINARY_OP);
19331933
_PyBinaryOpCache *cache = (_PyBinaryOpCache *)(instr + 1);
19341934
switch (oparg) {
19351935
case NB_ADD:

0 commit comments

Comments
 (0)
0