Skip to content

Commit be60e99

Browse files
committed
fix: fix conflict
2 parents 806146f + 561e706 commit be60e99

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Modules/arraymodule.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1632,7 +1632,9 @@ array_array_tofile_impl(arrayobject *self, PyTypeObject *cls, PyObject *f)
16321632
Py_DECREF(bytes);
16331633
if (res == NULL)
16341634
return NULL;
1635-
Py_DECREF(res); /* drop write result */
1635+
Py_DECREF(res);
1636+
1637+
offset += size;
16361638
}
16371639

16381640
done:

0 commit comments

Comments
 (0)