Skip to content

Commit ef2634d

Browse files
committed
Use PyLong_FromSize_t
1 parent 06a4723 commit ef2634d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_zstd/_zstdmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,8 @@ add_vars_to_module(PyObject *m)
587587
#endif
588588

589589
/* ZSTD_DStreamOutSize, int */
590-
if (PyModule_AddIntConstant(m, "ZSTD_DStreamOutSize",
591-
(uint32_t)ZSTD_DStreamOutSize()) < 0) {
590+
if (PyModule_Add(m, "ZSTD_DStreamOutSize",
591+
PyLong_FromSize_t(ZSTD_DStreamOutSize())) < 0) {
592592
return -1;
593593
}
594594

0 commit comments

Comments
 (0)