mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
724354ff47
commit
ae7f6613b4
@ -223,7 +223,7 @@ speedup_websocket_mask(PyObject *self, PyObject *args) {
|
|||||||
Py_ssize_t offset_ = 0;
|
Py_ssize_t offset_ = 0;
|
||||||
size_t offset = 0, i = 0;
|
size_t offset = 0, i = 0;
|
||||||
char *data_buf = NULL, *mask_buf = NULL, *ans_buf = NULL;
|
char *data_buf = NULL, *mask_buf = NULL, *ans_buf = NULL;
|
||||||
if(!PyArg_ParseTuple(args, "OO|n", &data, &mask, &offset)) return NULL;
|
if(!PyArg_ParseTuple(args, "OO|n", &data, &mask, &offset_)) return NULL;
|
||||||
offset = (size_t)offset_;
|
offset = (size_t)offset_;
|
||||||
ans = PyBytes_FromStringAndSize(NULL, PyBytes_GET_SIZE(data));
|
ans = PyBytes_FromStringAndSize(NULL, PyBytes_GET_SIZE(data));
|
||||||
if (ans != NULL) {
|
if (ans != NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user