diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-05-13 01:58:58 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-05-13 01:58:58 +0000 |
commit | 834d4dd20ea038e4bfd0dd7f9846d285c369cd5c (patch) | |
tree | b06d195287131798949b11ea33a9cefad119e959 /numpy/core/src/multiarraymodule.c | |
parent | 7cd1911082f7c2a431cd8bee944ac0abc61c8f9b (diff) | |
download | numpy-834d4dd20ea038e4bfd0dd7f9846d285c369cd5c.tar.gz |
Fix up warnings.
Diffstat (limited to 'numpy/core/src/multiarraymodule.c')
-rw-r--r-- | numpy/core/src/multiarraymodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarraymodule.c b/numpy/core/src/multiarraymodule.c index b84ff951d..b36989f3c 100644 --- a/numpy/core/src/multiarraymodule.c +++ b/numpy/core/src/multiarraymodule.c @@ -5153,7 +5153,7 @@ PyArray_FromFile(FILE *fp, PyArray_Descr *typecode, intp num, char *sep) #undef _FILEBUFNUM } } - if (nread < num) { + if (((intp) nread) < num) { fprintf(stderr, "%ld items requested but only %ld read\n", (long) num, (long) nread); r->data = PyDataMem_RENEW(r->data, nread * r->descr->elsize); |