diff options
author | wfspotz@sandia.gov <wfspotz@sandia.gov@localhost> | 2007-06-17 18:18:22 +0000 |
---|---|---|
committer | wfspotz@sandia.gov <wfspotz@sandia.gov@localhost> | 2007-06-17 18:18:22 +0000 |
commit | bc86e4a60050c629a57ef87f2dee48af6006b230 (patch) | |
tree | 8c1b3c258528536de9a552b8ecc0d887086f68fe /numpy/doc/swig | |
parent | 827bc405c59d98251055ea93e0a6392925d713a6 (diff) | |
download | numpy-bc86e4a60050c629a57ef87f2dee48af6006b230.tar.gz |
Fixed format string warning
Diffstat (limited to 'numpy/doc/swig')
-rw-r--r-- | numpy/doc/swig/numpy.i | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/doc/swig/numpy.i b/numpy/doc/swig/numpy.i index 69c947af3..3550a1800 100644 --- a/numpy/doc/swig/numpy.i +++ b/numpy/doc/swig/numpy.i @@ -292,14 +292,14 @@ int require_size(PyArrayObject* ary, npy_intp* size, int n) { } else { - sprintf(s, "%d,", size[i]); + sprintf(s, "%ld,", (long int)size[i]); } strcat(desired_dims,s); } len = strlen(desired_dims); desired_dims[len-1] = ']'; for (i = 0; i < n; i++) { - sprintf(s, "%d,", array_size(ary,i)); + sprintf(s, "%ld,", (long int)array_size(ary,i)); strcat(actual_dims,s); } len = strlen(actual_dims); |