8000 Use Py_UNREACHABLE · python/cpython@e825285 · GitHub
[go: up one dir, main page]

Skip to content

Commit e825285

Browse files
committed
Use Py_UNREACHABLE
1 parent c082d8a commit e825285

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Modules/_zstd/compressor.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,7 @@ _PyZstd_load_c_dict(ZstdCompressor *self, PyObject *dict) {
277277
Py_END_CRITICAL_SECTION2();
278278
}
279279
else {
280-
/* Impossible code path */
281-
PyErr_SetString(PyExc_SystemError,
282-
"load_c_dict() impossible code path");
283-
return -1;
280+
Py_UNREACHABLE();
284281
}
285282

286283
/* Check error */

0 commit comments

Comments
 (0)
0