summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r--numpy/core/src/arrayobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c
index a72730e35..e9fc3fee9 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -1267,7 +1267,7 @@ PyArray_ToFile(PyArrayObject *self, FILE *fp, char *sep, char *format)
PyArrayIterObject *it;
PyObject *obj, *strobj, *tupobj;
- n3 = (sep ? strlen((const char *)sep) : 0);
+ n3 = (int) (sep ? strlen((const char *)sep) : 0);
if (n3 == 0) { /* binary data */
if (PyArray_ISOBJECT(self)) {
PyErr_SetString(PyExc_ValueError, "cannot write "\
@@ -1309,7 +1309,7 @@ PyArray_ToFile(PyArrayObject *self, FILE *fp, char *sep, char *format)
else { /* text data */
it=(PyArrayIterObject *) \
PyArray_IterNew((PyObject *)self);
- n4 = (format ? strlen((const char *)format) : 0);
+ n4 = (int) (format ? strlen((const char *)format) : 0);
while(it->index < it->size) {
obj = self->descr->f->getitem(it->dataptr, self);
if (obj == NULL) {Py_DECREF(it); return -1;}