Skip to content
Snippets Groups Projects
Commit 090a1a78 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

merge with stable

parents 0424a913 3122058d
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,8 @@
{
if (self->inlined && pos > 0) {
if (self->offsets == NULL) {
Py_ssize_t ret;
self->offsets = PyMem_Malloc(self->raw_length *
sizeof(*self->offsets));
if (self->offsets == NULL)
return (const char *)PyErr_NoMemory();
......@@ -158,8 +159,8 @@
self->offsets = PyMem_Malloc(self->raw_length *
sizeof(*self->offsets));
if (self->offsets == NULL)
return (const char *)PyErr_NoMemory();
Py_ssize_t ret = inline_scan(self, self->offsets);
ret = inline_scan(self, self->offsets);
if (ret == -1) {
return NULL;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment