mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
[3.14] gh-132983: Use `Py_UNREACHABLE in _zstd_load_impl()` (GH-137320) (#137360)
Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
This commit is contained in:
parent
43d8f527c9
commit
0fc49bed80
1 changed files with 1 additions and 4 deletions
|
|
@ -157,10 +157,7 @@ _zstd_load_impl(ZstdDecompressor *self, ZstdDict *zd,
|
||||||
zd->dict_len);
|
zd->dict_len);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* Impossible code path */
|
Py_UNREACHABLE();
|
||||||
PyErr_SetString(PyExc_SystemError,
|
|
||||||
"load_d_dict() impossible code path");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check error */
|
/* Check error */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue