Show More
@@ -155,11 +155,12 b' static const char *index_deref(indexObje' | |||||
155 | { |
|
155 | { | |
156 | if (self->inlined && pos > 0) { |
|
156 | if (self->inlined && pos > 0) { | |
157 | if (self->offsets == NULL) { |
|
157 | if (self->offsets == NULL) { | |
|
158 | Py_ssize_t ret; | |||
158 | self->offsets = PyMem_Malloc(self->raw_length * |
|
159 | self->offsets = PyMem_Malloc(self->raw_length * | |
159 | sizeof(*self->offsets)); |
|
160 | sizeof(*self->offsets)); | |
160 | if (self->offsets == NULL) |
|
161 | if (self->offsets == NULL) | |
161 | return (const char *)PyErr_NoMemory(); |
|
162 | return (const char *)PyErr_NoMemory(); | |
162 |
|
|
163 | ret = inline_scan(self, self->offsets); | |
163 | if (ret == -1) { |
|
164 | if (ret == -1) { | |
164 | return NULL; |
|
165 | return NULL; | |
165 | }; |
|
166 | }; |
General Comments 0
You need to be logged in to leave comments.
Login now