Skip to content

Commit 301dcde

Browse files
miss-islingtonRogdham
authored andcommitted
[3.14] pythongh-132983: Use Py_UNREACHABLE in _zstd_load_impl() (pythonGH-137320) (python#137360)
Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
1 parent 7c40cb4 commit 301dcde

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Modules/_zstd/decompressor.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,7 @@ _zstd_load_impl(ZstdDecompressor *self, ZstdDict *zd,
157157
zd->dict_len);
158158
}
159159
else {
160-
/* Impossible code path */
161-
PyErr_SetString(PyExc_SystemError,
162-
"load_d_dict() impossible code path");
163-
return -1;
160+
Py_UNREACHABLE();
164161
}
165162

166163
/* Check error */

0 commit comments

Comments
 (0)