This commit is contained in:
Kovid Goyal 2015-10-26 15:08:02 +05:30
parent 724354ff47
commit ae7f6613b4

View File

@ -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) {