8000 gh-132983: Clean-ups for `_zstd` by AA-Turner · Pull Request #133670 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-132983: Clean-ups for _zstd #133670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
May 9, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use PyLong_FromSize_t
  • Loading branch information
AA-Turner committed May 9, 2025
commit ef2634d97daef0e3fc861b478c61c7e5d1f04108
4 changes: 2 additions & 2 deletions Modules/_zstd/_zstdmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,8 @@ add_vars_to_module(PyObject *m)
#endif

/* ZSTD_DStreamOutSize, int */
if (PyModule_AddIntConstant(m, "ZSTD_DStreamOutSize",
(uint32_t)ZSTD_DStreamOutSize()) < 0) {
if (PyModule_Add(m, "ZSTD_DStreamOutSize",
PyLong_FromSize_t(ZSTD_DStreamOutSize())) < 0) {
return -1;
}

Expand Down
Loading
0