##// END OF EJS Templates
python-zstandard: apply big-endian fix (issue6188)...
Gregory Szorc -
r43083:a4e32fd5 5.1.1 stable
parent child Browse files
Show More
@@ -68,13 +68,13 b' static int Decompressor_init(ZstdDecompr'
68 };
68 };
69
69
70 ZstdCompressionDict* dict = NULL;
70 ZstdCompressionDict* dict = NULL;
71 size_t maxWindowSize = 0;
71 Py_ssize_t maxWindowSize = 0;
72 ZSTD_format_e format = ZSTD_f_zstd1;
72 ZSTD_format_e format = ZSTD_f_zstd1;
73
73
74 self->dctx = NULL;
74 self->dctx = NULL;
75 self->dict = NULL;
75 self->dict = NULL;
76
76
77 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|O!II:ZstdDecompressor", kwlist,
77 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|O!nI:ZstdDecompressor", kwlist,
78 &ZstdCompressionDictType, &dict, &maxWindowSize, &format)) {
78 &ZstdCompressionDictType, &dict, &maxWindowSize, &format)) {
79 return -1;
79 return -1;
80 }
80 }
General Comments 0
You need to be logged in to leave comments. Login now