Skip to content

Commit 57eab1b

Browse files
authored
gh-132983: Use Py_UNREACHABLE in _zstd_load_impl() (#137320)
1 parent 406dc71 commit 57eab1b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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)