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